commit a06f23c8ea132a4e45dcc396a35826aa1b0e0aea (tree)
parent 6e30fc78328173215b27017d46fb6cc6add1222c
Author: Andrew Kelley <andrew@ziglang.org>
Date: Fri, 22 May 2026 22:27:03 -0700
std.array_list: fix doc comment references
allows autodoc to make these hyperlinks
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/std/array_list.zig b/lib/std/array_list.zig
@@ -1152,14 +1152,14 @@ pub fn Aligned(comptime T: type, comptime alignment: ?mem.Alignment) type {
/// Shrinks capacity to match length.
/// May invalidate element pointers.
- /// If succeds it is safe to call toOwnedSliceAssert().
+ /// If succeds it is safe to call `toOwnedSliceAssert`.
pub fn shrinkToLen(self: *Self, gpa: Allocator) Allocator.Error!void {
try self.shrinkAndFreePrecise(gpa, self.items.len);
}
/// Shrinks or expands capacity to match length + 1.
/// May invalidate element pointers.
- /// If succeds it is safe to call toOwnedSliceSentinelAssert().
+ /// If succeds it is safe to call `toOwnedSliceSentinelAssert`.
pub fn shrinkToLenSentinel(self: *Self, gpa: Allocator) Allocator.Error!void {
std.debug.assert(self.items.len <= self.capacity);
const required_len = self.items.len + 1;