| ... | ... | @@ -125,7 +125,7 @@ pub fn ArrayListAligned(comptime T: type, comptime alignment: ?u29) type { |
| 125 | 125 | } |
| 126 | 126 | |
| 127 | 127 | /// Creates a copy of this ArrayList, using the same allocator. |
| 128 | | pub fn clone(self: *Self) Allocator.Error!Self { |
| 128 | pub fn clone(self: Self) Allocator.Error!Self { |
| 129 | 129 | var cloned = try Self.initCapacity(self.allocator, self.capacity); |
| 130 | 130 | cloned.appendSliceAssumeCapacity(self.items); |
| 131 | 131 | return cloned; |
| ... | ... | @@ -560,7 +560,7 @@ pub fn ArrayListAlignedUnmanaged(comptime T: type, comptime alignment: ?u29) typ |
| 560 | 560 | } |
| 561 | 561 | |
| 562 | 562 | /// Creates a copy of this ArrayList. |
| 563 | | pub fn clone(self: *Self, allocator: Allocator) Allocator.Error!Self { |
| 563 | pub fn clone(self: Self, allocator: Allocator) Allocator.Error!Self { |
| 564 | 564 | var cloned = try Self.initCapacity(allocator, self.capacity); |
| 565 | 565 | cloned.appendSliceAssumeCapacity(self.items); |
| 566 | 566 | return cloned; |