ziglings/patches/patches/009_if.patch

11 lines
347 B
Diff

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