Remove unimplemented init
call from ArrayListUnmanaged.
This commit is contained in:
parent
ef42ef9ce8
commit
e1186c88ea
@ -292,7 +292,7 @@ pub fn ArrayListAlignedUnmanaged(comptime T: type, comptime alignment: ?u29) typ
|
|||||||
/// Initialize with capacity to hold at least num elements.
|
/// Initialize with capacity to hold at least num elements.
|
||||||
/// Deinitialize with `deinit` or use `toOwnedSlice`.
|
/// Deinitialize with `deinit` or use `toOwnedSlice`.
|
||||||
pub fn initCapacity(allocator: *Allocator, num: usize) !Self {
|
pub fn initCapacity(allocator: *Allocator, num: usize) !Self {
|
||||||
var self = Self.init(allocator);
|
var self = Self{};
|
||||||
try self.ensureCapacity(allocator, num);
|
try self.ensureCapacity(allocator, num);
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user