diff options
author | Martin Ashby <martin@ashbysoft.com> | 2023-12-04 20:53:21 +0000 |
---|---|---|
committer | Martin Ashby <martin@ashbysoft.com> | 2023-12-04 20:53:21 +0000 |
commit | 3521330407bac556ab075cae0dd5d27ddc313d6c (patch) | |
tree | d57d7ff40315ca49b58d390e97da6e0eaff77dda /common.zig | |
parent | b3b47eb8664a6f530fb33df6a1a5ffbe6c86cb32 (diff) | |
download | aoc2023-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.zig | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |