diff options
Diffstat (limited to 'day2.zig')
-rw-r--r-- | day2.zig | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -16,7 +16,9 @@ const Colour = enum { }; pub fn main() !void { - var setup = try Setup.get(); + var gpa = std.heap.GeneralPurposeAllocator(.{}){}; + defer _ = gpa.deinit(); + var setup = try Setup.get(gpa.allocator()); defer setup.deinit(); var sum: u32 = 0; var lines = std.mem.splitScalar(u8, setup.input, '\n'); |