summaryrefslogtreecommitdiff
path: root/docs/std
diff options
context:
space:
mode:
authorDavid Scholberg <recombinant.vector@gmail.com>2026-01-20 22:02:07 -0500
committerDavid Scholberg <recombinant.vector@gmail.com>2026-01-20 22:02:07 -0500
commita58dd232dc72f20971707c99dfa6266133f70a20 (patch)
treef52aba74aeab46e686bfcc394a4a2e15f654e3cf /docs/std
parent8144aef45d5db22ab2895b41448cd76bf01e05cc (diff)
added append function to vec
Diffstat (limited to 'docs/std')
-rw-r--r--docs/std/vec.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/std/vec.md b/docs/std/vec.md
index bda8d5b..3ccdf7e 100644
--- a/docs/std/vec.md
+++ b/docs/std/vec.md
@@ -54,6 +54,7 @@ struct Vec<T> {
| **pop_opt** | `pop_opt(self) -> Option<T>` | Removes the last element and returns `Some(val)`. Returns `None` if empty. Safe usage. |
| **insert** | `insert(self, idx: usize, item: T)` | Inserts an element at `idx`. Shifts elements right. Panics if `idx > len`. |
| **remove** | `remove(self, idx: usize) -> T` | Removes and returns the element at `idx`. Shifts elements left. Panics if `idx >= len`. |
+| **append** | `append(self, other: Vec<T>)` | Appends the given vec to the back of self, growing the capacity of self as needed. |
| **clear** | `clear(self)` | Removes all values. Has no effect on allocated capacity. |
| **reverse** | `reverse(self)` | Reverses the order of elements in place. |