aboutsummaryrefslogtreecommitdiff
path: root/common.zig
diff options
context:
space:
mode:
authorMartin Ashby <martin@ashbysoft.com>2023-12-04 20:53:21 +0000
committerMartin Ashby <martin@ashbysoft.com>2023-12-04 20:53:21 +0000
commit3521330407bac556ab075cae0dd5d27ddc313d6c (patch)
treed57d7ff40315ca49b58d390e97da6e0eaff77dda /common.zig
parentb3b47eb8664a6f530fb33df6a1a5ffbe6c86cb32 (diff)
downloadaoc2023-3521330407bac556ab075cae0dd5d27ddc313d6c.tar.gz
aoc2023-3521330407bac556ab075cae0dd5d27ddc313d6c.tar.bz2
aoc2023-3521330407bac556ab075cae0dd5d27ddc313d6c.tar.xz
aoc2023-3521330407bac556ab075cae0dd5d27ddc313d6c.zip
Day4
Plus fixes var -> const for latest zig version
Diffstat (limited to 'common.zig')
-rw-r--r--common.zig2
1 files changed, 1 insertions, 1 deletions
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;
}