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-04 17:42:22-07:00
logcef0857634686c0b4968d9d5a90991f0feeef839
tree21a20842c5138c147a1bb3ff22d0b57c311e640f
parent1bfbbe8b80c9155591766e302ffbc93c180b348a

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;