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;