diff options
| author | Ibrahim Muftee <ibrahim@muftee.net> | 2026-06-29 15:11:40 -0500 |
|---|---|---|
| committer | Ibrahim Muftee <ibrahim@muftee.net> | 2026-06-29 15:15:14 -0500 |
| commit | bdfe3df2947f8787c8a4ef8c534f6a8932e13871 (patch) | |
| tree | f2df9a5f56b6c7f95c0978a861cb0ecf60560391 /exercises/056_unions2.zig | |
| parent | d093f37e1e4c5aed4a4c8d4999001134aec251ca (diff) | |
feat: begin solving exercises
Diffstat (limited to 'exercises/056_unions2.zig')
| -rw-r--r-- | exercises/056_unions2.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/exercises/056_unions2.zig b/exercises/056_unions2.zig index c46d133..bebc833 100644 --- a/exercises/056_unions2.zig +++ b/exercises/056_unions2.zig @@ -44,14 +44,14 @@ pub fn main() void { std.debug.print("Insect report! ", .{}); // Could it really be as simple as just passing the union? - printInsect(???); - printInsect(???); + printInsect(ant); + printInsect(bee); std.debug.print("\n", .{}); } fn printInsect(insect: Insect) void { - switch (???) { + switch (insect) { .still_alive => |a| std.debug.print("Ant alive is: {}. ", .{a}), .flowers_visited => |f| std.debug.print("Bee visited {} flowers. ", .{f}), } |
