authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-05-22 22:27:03-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-05-22 22:27:35-07:00
loga06f23c8ea132a4e45dcc396a35826aa1b0e0aea
treec723305763f608f7a6307e3a682734539680a50e
parent6e30fc78328173215b27017d46fb6cc6add1222c

std.array_list: fix doc comment references

allows autodoc to make these hyperlinks

1 files changed, 2 insertions(+), 2 deletions(-)

lib/std/array_list.zig+2-2
...@@ -1152,14 +1152,14 @@ pub fn Aligned(comptime T: type, comptime alignment: ?mem.Alignment) type {...@@ -1152,14 +1152,14 @@ pub fn Aligned(comptime T: type, comptime alignment: ?mem.Alignment) type {
11521152
1153 /// Shrinks capacity to match length.1153 /// Shrinks capacity to match length.
1154 /// May invalidate element pointers.1154 /// May invalidate element pointers.
1155 /// If succeds it is safe to call toOwnedSliceAssert().1155 /// If succeds it is safe to call `toOwnedSliceAssert`.
1156 pub fn shrinkToLen(self: *Self, gpa: Allocator) Allocator.Error!void {1156 pub fn shrinkToLen(self: *Self, gpa: Allocator) Allocator.Error!void {
1157 try self.shrinkAndFreePrecise(gpa, self.items.len);1157 try self.shrinkAndFreePrecise(gpa, self.items.len);
1158 }1158 }
11591159
1160 /// Shrinks or expands capacity to match length + 1.1160 /// Shrinks or expands capacity to match length + 1.
1161 /// May invalidate element pointers.1161 /// May invalidate element pointers.
1162 /// If succeds it is safe to call toOwnedSliceSentinelAssert().1162 /// If succeds it is safe to call `toOwnedSliceSentinelAssert`.
1163 pub fn shrinkToLenSentinel(self: *Self, gpa: Allocator) Allocator.Error!void {1163 pub fn shrinkToLenSentinel(self: *Self, gpa: Allocator) Allocator.Error!void {
1164 std.debug.assert(self.items.len <= self.capacity);1164 std.debug.assert(self.items.len <= self.capacity);
1165 const required_len = self.items.len + 1;1165 const required_len = self.items.len + 1;