From bdfe3df2947f8787c8a4ef8c534f6a8932e13871 Mon Sep 17 00:00:00 2001 From: Ibrahim Muftee Date: Mon, 29 Jun 2026 15:11:40 -0500 Subject: feat: begin solving exercises --- exercises/056_unions2.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'exercises/056_unions2.zig') 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}), } -- cgit v1.2.3