031_switch2.patch 400 B

12345678910
  1. --- exercises/031_switch2.zig 2023-10-03 22:15:22.122241138 +0200
  2. +++ answers/031_switch2.zig 2023-10-05 20:04:06.979432113 +0200
  3. @@ -31,6 +31,7 @@
  4. 26 => 'Z',
  5. // As in the last exercise, please add the 'else' clause
  6. // and this time, have it return an exclamation mark '!'.
  7. + else => '!',
  8. };
  9. std.debug.print("{c}", .{real_char});