authorgravatar for SuXYMC@163.comSueXY <SuXYMC@163.com> 2026-10-16 22:32:02+08:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-18 16:07:38+02:00
log646b438b63c3e501a2dd8fda31bccc0e92fcba10
tree74aaf20636950fba59439194ef96e4f69a2e3229
parentb17d95a565b30e58f813f8c79db2946f995c95d6
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

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);