From a06f23c8ea132a4e45dcc396a35826aa1b0e0aea Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 22 May 2026 22:27:03 -0700 Subject: [PATCH] std.array_list: fix doc comment references allows autodoc to make these hyperlinks --- lib/std/array_list.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/std/array_list.zig b/lib/std/array_list.zig index 71a52b669f7b1b7296eb1ea72ee84b4effa11d9a..889915d8ba60cec429bd0dc10a931d8c78912782 100644 --- 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; -- 2.54.0