From 11d3e2515dd22f7bdf6f7c8021332006684ae8e9 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 3 Sep 2026 17:57:55 -0700 Subject: [PATCH] std.ArrayList: add "see also" doc comment --- lib/std/array_list.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/std/array_list.zig b/lib/std/array_list.zig index 7b6a004603a2d557dd2af751f322536dfa23b1a6..7c34f58dba4d4151e1df3426eeccbbc1a7064b16 100644 --- a/lib/std/array_list.zig +++ b/lib/std/array_list.zig @@ -776,6 +776,9 @@ pub fn Aligned(comptime T: type, comptime alignment: ?mem.Alignment) type { /// /// Asserts what the capacity is equal to the length. /// Never invalidates element pointers. + /// + /// See also: + /// * `shrinkToLen` pub fn toOwnedSliceAssert(self: *Self) Slice { assert(self.items.len == self.capacity); const items = self.items; -- 2.54.0