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 {
11521152
11531153 /// Shrinks capacity to match length.
11541154 /// May invalidate element pointers.
1155 /// If succeds it is safe to call toOwnedSliceAssert().
1155 /// If succeds it is safe to call `toOwnedSliceAssert`.
11561156 pub fn shrinkToLen(self: *Self, gpa: Allocator) Allocator.Error!void {
11571157 try self.shrinkAndFreePrecise(gpa, self.items.len);
11581158 }
11591159
11601160 /// Shrinks or expands capacity to match length + 1.
11611161 /// May invalidate element pointers.
1162 /// If succeds it is safe to call toOwnedSliceSentinelAssert().
1162 /// If succeds it is safe to call `toOwnedSliceSentinelAssert`.
11631163 pub fn shrinkToLenSentinel(self: *Self, gpa: Allocator) Allocator.Error!void {
11641164 std.debug.assert(self.items.len <= self.capacity);
11651165 const required_len = self.items.len + 1;