commit e1186c88eaed414d4e93d05a882c27c641d5e6ab (tree)
parent ef42ef9ce8d36d26f91669a61f4c57fd3e4d58d7
Author: Walter Mays <walt@waltermays.com>
Date: Tue, 26 May 2020 14:51:03 -0500
Remove unimplemented `init` call from ArrayListUnmanaged.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/std/array_list.zig b/lib/std/array_list.zig
@@ -292,7 +292,7 @@ pub fn ArrayListAlignedUnmanaged(comptime T: type, comptime alignment: ?u29) typ
/// Initialize with capacity to hold at least num elements.
/// Deinitialize with `deinit` or use `toOwnedSlice`.
pub fn initCapacity(allocator: *Allocator, num: usize) !Self {
- var self = Self.init(allocator);
+ var self = Self{};
try self.ensureCapacity(allocator, num);
return self;
}