authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-09-03 17:57:55-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-09-16 13:12:46-07:00
log11d3e2515dd22f7bdf6f7c8021332006684ae8e9
tree11a5418ad39f51c9454650edcb95bb3b6503ed73
parent0b561847c15b3c90c4af8e1084c681fc1ecb0068

std.ArrayList: add "see also" doc comment


1 files changed, 3 insertions(+), 0 deletions(-)

lib/std/array_list.zig+3
...@@ -776,6 +776,9 @@ pub fn Aligned(comptime T: type, comptime alignment: ?mem.Alignment) type {...@@ -776,6 +776,9 @@ pub fn Aligned(comptime T: type, comptime alignment: ?mem.Alignment) type {
776 ///776 ///
777 /// Asserts what the capacity is equal to the length.777 /// Asserts what the capacity is equal to the length.
778 /// Never invalidates element pointers.778 /// Never invalidates element pointers.
779 ///
780 /// See also:
781 /// * `shrinkToLen`
779 pub fn toOwnedSliceAssert(self: *Self) Slice {782 pub fn toOwnedSliceAssert(self: *Self) Slice {
780 assert(self.items.len == self.capacity);783 assert(self.items.len == self.capacity);
781 const items = self.items;784 const items = self.items;