exercises/patches/patches/079_quoted_identifiers.patch

18 lines
519 B
Diff

--- exercises/079_quoted_identifiers.zig 2023-10-03 22:15:22.125574535 +0200
+++ answers/079_quoted_identifiers.zig 2023-10-05 20:04:07.199436232 +0200
@@ -20,11 +20,11 @@
const print = @import("std").debug.print;
pub fn main() void {
- const 55_cows: i32 = 55;
- const isn't true: bool = false;
+ const @"55_cows": i32 = 55;
+ const @"isn't true": bool = false;
print("Sweet freedom: {}, {}.\n", .{
- 55_cows,
- isn't true,
+ @"55_cows",
+ @"isn't true",
});
}