aboutsummaryrefslogtreecommitdiff
path: root/lib/std/array_list.zig
diff options
context:
space:
mode:
authorWalter Mays <walt@waltermays.com>2020-05-26 14:51:03 -0500
committerAndrew Kelley <andrew@ziglang.org>2020-05-26 15:59:56 -0400
commite1186c88eaed414d4e93d05a882c27c641d5e6ab (patch)
treec0f3a2eca7268834f48d72b768ca1615466fab96 /lib/std/array_list.zig
parentef42ef9ce8d36d26f91669a61f4c57fd3e4d58d7 (diff)
downloadzig-e1186c88eaed414d4e93d05a882c27c641d5e6ab.tar.gz
zig-e1186c88eaed414d4e93d05a882c27c641d5e6ab.zip
Remove unimplemented `init` call from ArrayListUnmanaged.
Diffstat (limited to 'lib/std/array_list.zig')
-rw-r--r--lib/std/array_list.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/array_list.zig b/lib/std/array_list.zig
index b9dea8a12f..cbf0c8b929 100644
--- 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;
}