aboutsummaryrefslogtreecommitdiff
path: root/exercises/014_while4.zig
diff options
context:
space:
mode:
Diffstat (limited to 'exercises/014_while4.zig')
-rw-r--r--exercises/014_while4.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/014_while4.zig b/exercises/014_while4.zig
index 95aecb0..8ca68aa 100644
--- a/exercises/014_while4.zig
+++ b/exercises/014_while4.zig
@@ -18,7 +18,7 @@ pub fn main() void {
// Oh dear! This while loop will go forever?!
// Please fix this so the print statement below gives the desired output.
while (true) : (n += 1) {
- if (???) ???;
+ if (n >= 4) break;
}
// Result: we want n=4