| ... | @@ -292,7 +292,7 @@ pub fn ArrayListAlignedUnmanaged(comptime T: type, comptime alignment: ?u29) typ | ... | @@ -292,7 +292,7 @@ pub fn ArrayListAlignedUnmanaged(comptime T: type, comptime alignment: ?u29) typ |
| 292 | /// Initialize with capacity to hold at least num elements. | 292 | /// Initialize with capacity to hold at least num elements. |
| 293 | /// Deinitialize with `deinit` or use `toOwnedSlice`. | 293 | /// Deinitialize with `deinit` or use `toOwnedSlice`. |
| 294 | pub fn initCapacity(allocator: *Allocator, num: usize) !Self { | 294 | pub fn initCapacity(allocator: *Allocator, num: usize) !Self { |
| 295 | var self = Self.init(allocator); | 295 | var self = Self{}; |
| 296 | try self.ensureCapacity(allocator, num); | 296 | try self.ensureCapacity(allocator, num); |
| 297 | return self; | 297 | return self; |
| 298 | } | 298 | } |