Typo in safe_list.zig

This commit is contained in:
Fabian Schmalzried 2025-10-19 21:11:08 +02:00 committed by GitHub
parent 9e7a66f037
commit 2e4c0b4182
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -200,7 +200,7 @@ pub fn SafeList(comptime T: type) type {
return @enumFromInt(@as(u32, @intCast(length)));
}
/// Add a new item to the end of this list assuming cpacity is sufficient to hold an additional item.
/// Add a new item to the end of this list assuming capacity is sufficient to hold an additional item.
pub fn appendAssumeCapacity(self: *SafeList(T), item: T) Idx {
const length = self.len();
self.items.appendAssumeCapacity(item);
@ -440,7 +440,7 @@ pub fn SafeMultiList(comptime T: type) type {
return @enumFromInt(@as(u32, @intCast(length)));
}
/// Add a new item to the end of this list assuming cpacity is sufficient to hold an additional item.
/// Add a new item to the end of this list assuming capacity is sufficient to hold an additional item.
pub fn appendAssumeCapacity(self: *SafeMultiList(T), item: T) Idx {
const length = self.len();
self.items.appendAssumeCapacity(item);