mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-11-14 05:40:47 -05:00
11 lines
347 B
Diff
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 {
|