| author | |
| committer | |
| log | e1186c88eaed414d4e93d05a882c27c641d5e6ab |
| tree | c0f3a2eca7268834f48d72b768ca1615466fab96 |
| parent | ef42ef9ce8d36d26f91669a61f4c57fd3e4d58d7 |
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 |
| 292 | 292 | /// Initialize with capacity to hold at least num elements. |
| 293 | 293 | /// Deinitialize with `deinit` or use `toOwnedSlice`. |
| 294 | 294 | pub fn initCapacity(allocator: *Allocator, num: usize) !Self { |
| 295 | var self = Self.init(allocator); | |
| 295 | var self = Self{}; | |
| 296 | 296 | try self.ensureCapacity(allocator, num); |
| 297 | 297 | return self; |
| 298 | 298 | } |