summaryrefslogtreecommitdiff
path: root/day_07.zig
diff options
context:
space:
mode:
authorChristian Segundo2022-12-07 22:33:11 +0100
committerChristian Segundo2022-12-07 22:33:11 +0100
commitbe2c84d0f69c3cb9dc747a61a782e9fcd8ca7b4d (patch)
tree82ceb1a82f9ad7cb2991b8e80c71dd166bfa05cd /day_07.zig
parentc63df4490783c0143fd82938d274c24410444ff7 (diff)
downloadadvent-of-zig-2022-be2c84d0f69c3cb9dc747a61a782e9fcd8ca7b4d.tar.gz
union enum trips the compiler
Diffstat (limited to 'day_07.zig')
-rw-r--r--day_07.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/day_07.zig b/day_07.zig
index 01c71a2..e11fe2f 100644
--- a/day_07.zig
+++ b/day_07.zig
@@ -1,7 +1,7 @@
const std = @import("std");
const Result = @import("util/aoc.zig").Result;
-const NodeType = union(enum) { File, Dir };
+const NodeType = enum { File, Dir };
const Node = struct {
Name: []const u8,
Childs: struct {