From a58dd232dc72f20971707c99dfa6266133f70a20 Mon Sep 17 00:00:00 2001 From: David Scholberg Date: Tue, 20 Jan 2026 22:02:07 -0500 Subject: added append function to vec --- docs/std/vec.md | 1 + 1 file changed, 1 insertion(+) (limited to 'docs') 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 { | **pop_opt** | `pop_opt(self) -> Option` | 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)` | 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. | -- cgit v1.2.3