changed the patch files that we can also use them with busybox for testing in Woodpecker

This commit is contained in:
Chris Boesch
2023-10-05 20:18:04 +02:00
parent 992323ac6c
commit 7491e3df91
109 changed files with 1606 additions and 770 deletions
+11 -4
View File
@@ -1,4 +1,11 @@
21c21
< if (???) ???;
---
> if (n == 4) break;
--- exercises/014_while4.zig 2023-10-03 22:15:22.122241138 +0200
+++ answers/014_while4.zig 2023-10-05 20:04:06.906097406 +0200
@@ -18,7 +18,7 @@
// 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