From 646b438b63c3e501a2dd8fda31bccc0e92fcba10 Mon Sep 17 00:00:00 2001 From: SueXY Date: Fri, 16 Oct 2026 22:32:02 +0800 Subject: [PATCH] std.array_list: fix typo --- 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 7c34f58dba4d4151e1df3426eeccbbc1a7064b16..96d2ce45dbb1eb563b463255e27077dd3ea3e975 100644 --- a/lib/std/array_list.zig +++ b/lib/std/array_list.zig @@ -774,7 +774,7 @@ pub fn Aligned(comptime T: type, comptime alignment: ?mem.Alignment) type { /// The caller owns the returned memory. Empties this ArrayList. /// Its capacity is cleared, making deinit() safe but unnecessary to call. /// - /// Asserts what the capacity is equal to the length. + /// Asserts that the capacity is equal to the length. /// Never invalidates element pointers. /// /// See also: @@ -787,7 +787,7 @@ pub fn Aligned(comptime T: type, comptime alignment: ?mem.Alignment) type { } /// The caller owns the returned memory. ArrayList becomes empty. - /// Asserts what the capacity is equal to the length + 1. + /// Asserts that the capacity is equal to the length + 1. /// Never invalidates element pointers. pub fn toOwnedSliceSentinelAssert(self: *Self, comptime sentinel: T) SentinelSlice(sentinel) { std.debug.assert(self.items.len + 1 == self.capacity); -- 2.54.0