You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ziglings/patches/patches/009_if.patch

12 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 {