079_quoted_identifiers.patch 519 B

123456789101112131415161718
  1. --- exercises/079_quoted_identifiers.zig 2023-10-03 22:15:22.125574535 +0200
  2. +++ answers/079_quoted_identifiers.zig 2023-10-05 20:04:07.199436232 +0200
  3. @@ -20,11 +20,11 @@
  4. const print = @import("std").debug.print;
  5. pub fn main() void {
  6. - const 55_cows: i32 = 55;
  7. - const isn't true: bool = false;
  8. + const @"55_cows": i32 = 55;
  9. + const @"isn't true": bool = false;
  10. print("Sweet freedom: {}, {}.\n", .{
  11. - 55_cows,
  12. - isn't true,
  13. + @"55_cows",
  14. + @"isn't true",
  15. });
  16. }