aboutsummaryrefslogtreecommitdiff
path: root/exercises/056_unions2.zig
diff options
context:
space:
mode:
Diffstat (limited to 'exercises/056_unions2.zig')
-rw-r--r--exercises/056_unions2.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/exercises/056_unions2.zig b/exercises/056_unions2.zig
index e4294db..911ee42 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}),
}