authorgravatar for SuXYMC@163.comSueXY <SuXYMC@163.com> 2026-10-16 22:32:02+08:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-10-17 09:31:30+02:00
logf471212724bb917c57fc89a1cf41b5d365aa3a2d
treea9a9b67980d8f0cc018e29d2c28254dbed6e9cc1
parent0bb017791401030e3a9e26755f9397e4dedb4fcd

std.array_list: fix typo


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

lib/std/array_list.zig+2-2
......@@ -774,7 +774,7 @@ pub fn Aligned(comptime T: type, comptime alignment: ?mem.Alignment) type {
774774 /// The caller owns the returned memory. Empties this ArrayList.
775775 /// Its capacity is cleared, making deinit() safe but unnecessary to call.
776776 ///
777 /// Asserts what the capacity is equal to the length.
777 /// Asserts that the capacity is equal to the length.
778778 /// Never invalidates element pointers.
779779 ///
780780 /// See also:
......@@ -787,7 +787,7 @@ pub fn Aligned(comptime T: type, comptime alignment: ?mem.Alignment) type {
787787 }
788788
789789 /// The caller owns the returned memory. ArrayList becomes empty.
790 /// Asserts what the capacity is equal to the length + 1.
790 /// Asserts that the capacity is equal to the length + 1.
791791 /// Never invalidates element pointers.
792792 pub fn toOwnedSliceSentinelAssert(self: *Self, comptime sentinel: T) SentinelSlice(sentinel) {
793793 std.debug.assert(self.items.len + 1 == self.capacity);