055_unions.patch 413 B

12345678910111213
  1. --- exercises/055_unions.zig 2023-10-03 22:15:22.122241138 +0200
  2. +++ answers/055_unions.zig 2023-10-05 20:04:07.092767568 +0200
  3. @@ -59,8 +59,8 @@
  4. std.debug.print("Insect report! ", .{});
  5. // Oops! We've made a mistake here.
  6. - printInsect(ant, AntOrBee.c);
  7. - printInsect(bee, AntOrBee.c);
  8. + printInsect(ant, AntOrBee.a);
  9. + printInsect(bee, AntOrBee.b);
  10. std.debug.print("\n", .{});
  11. }