009_if.patch 347 B

1234567891011
  1. --- exercises/009_if.zig 2023-10-03 22:15:22.122241138 +0200
  2. +++ answers/009_if.zig 2023-10-05 20:04:06.882763636 +0200
  3. @@ -24,7 +24,7 @@
  4. const foo = 1;
  5. // Please fix this condition:
  6. - if (foo) {
  7. + if (foo == 1) {
  8. // We want our program to print this message!
  9. std.debug.print("Foo is 1!\n", .{});
  10. } else {