authorgravatar for walt@waltermays.comWalter Mays <walt@waltermays.com> 2020-05-26 14:51:03-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-05-26 15:59:56-04:00
loge1186c88eaed414d4e93d05a882c27c641d5e6ab
treec0f3a2eca7268834f48d72b768ca1615466fab96
parentef42ef9ce8d36d26f91669a61f4c57fd3e4d58d7

Remove unimplemented `init` call from ArrayListUnmanaged.


1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/array_list.zig+1-1
......@@ -292,7 +292,7 @@ pub fn ArrayListAlignedUnmanaged(comptime T: type, comptime alignment: ?u29) typ
292292 /// Initialize with capacity to hold at least num elements.
293293 /// Deinitialize with `deinit` or use `toOwnedSlice`.
294294 pub fn initCapacity(allocator: *Allocator, num: usize) !Self {
295 var self = Self.init(allocator);
295 var self = Self{};
296296 try self.ensureCapacity(allocator, num);
297297 return self;
298298 }