mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-23 08:48:03 +00:00
Typo in safe_list.zig
This commit is contained in:
parent
9e7a66f037
commit
2e4c0b4182
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue