diff options
Diffstat (limited to 'lib/std/array_list.zig')
| -rw-r--r-- | lib/std/array_list.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/array_list.zig b/lib/std/array_list.zig index ac1b144690..197b8c7fba 100644 --- a/lib/std/array_list.zig +++ b/lib/std/array_list.zig @@ -100,7 +100,7 @@ pub fn ArrayListAligned(comptime T: type, comptime alignment: ?u29) type { /// of this ArrayList. Empties this ArrayList. pub fn moveToUnmanaged(self: *Self) ArrayListAlignedUnmanaged(T, alignment) { const allocator = self.allocator; - const result = .{ .items = self.items, .capacity = self.capacity }; + const result: ArrayListAlignedUnmanaged(T, alignment) = .{ .items = self.items, .capacity = self.capacity }; self.* = init(allocator); return result; } |
