015_for.patch 417 B

1234567891011
  1. --- exercises/015_for.zig 2023-10-03 22:15:22.122241138 +0200
  2. +++ answers/015_for.zig 2023-10-05 20:04:06.909430803 +0200
  3. @@ -15,7 +15,7 @@
  4. std.debug.print("A Dramatic Story: ", .{});
  5. - for (???) |???| {
  6. + for (story) |scene| {
  7. if (scene == 'h') std.debug.print(":-) ", .{});
  8. if (scene == 's') std.debug.print(":-( ", .{});
  9. if (scene == 'n') std.debug.print(":-| ", .{});