From 3521330407bac556ab075cae0dd5d27ddc313d6c Mon Sep 17 00:00:00 2001 From: Martin Ashby Date: Mon, 4 Dec 2023 20:53:21 +0000 Subject: Day4 Plus fixes var -> const for latest zig version --- common.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common.zig') diff --git a/common.zig b/common.zig index c38beb1..9eb1c6e 100644 --- a/common.zig +++ b/common.zig @@ -31,7 +31,7 @@ pub const Setup = struct { var f = try std.fs.cwd().openFile(file, .{}); defer f.close(); - var c = try f.readToEndAlloc(res.a, std.math.maxInt(u32)); + const c = try f.readToEndAlloc(res.a, std.math.maxInt(u32)); res.input = c; return res; } -- cgit v1.2.3-ZIG