057_unions3.patch 304 B

1234567891011
  1. --- exercises/057_unions3.zig 2023-10-03 22:15:22.122241138 +0200
  2. +++ answers/057_unions3.zig 2023-10-05 20:04:07.099434359 +0200
  3. @@ -15,7 +15,7 @@
  4. //
  5. const std = @import("std");
  6. -const Insect = union(InsectStat) {
  7. +const Insect = union(enum) {
  8. flowers_visited: u16,
  9. still_alive: bool,
  10. };