| ... | @@ -188,7 +188,7 @@ pub fn MultiArrayList(comptime S: type) type { | ... | @@ -188,7 +188,7 @@ pub fn MultiArrayList(comptime S: type) type { |
| 188 | /// after and including the specified index back by one and | 188 | /// after and including the specified index back by one and |
| 189 | /// sets the given index to the specified element. May reallocate | 189 | /// sets the given index to the specified element. May reallocate |
| 190 | /// and invalidate iterators. | 190 | /// and invalidate iterators. |
| 191 | pub fn insert(self: *Self, gpa: Allocator, index: usize, elem: S) void { | 191 | pub fn insert(self: *Self, gpa: Allocator, index: usize, elem: S) !void { |
| 192 | try self.ensureUnusedCapacity(gpa, 1); | 192 | try self.ensureUnusedCapacity(gpa, 1); |
| 193 | self.insertAssumeCapacity(index, elem); | 193 | self.insertAssumeCapacity(index, elem); |
| 194 | } | 194 | } |