mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-09-11 22:38:54 +00:00
changed the patch files that we can also use them with busybox for testing in Woodpecker
This commit is contained in:
@@ -1,4 +1,11 @@
|
||||
21c21
|
||||
< std.debug.print(") ", .{}); // <---- how?!
|
||||
---
|
||||
> defer std.debug.print(") ", .{}); // <---- how?!
|
||||
--- exercises/028_defer2.zig 2023-10-03 22:15:22.122241138 +0200
|
||||
+++ answers/028_defer2.zig 2023-10-05 20:04:06.966098530 +0200
|
||||
@@ -18,7 +18,7 @@
|
||||
fn printAnimal(animal: u8) void {
|
||||
std.debug.print("(", .{});
|
||||
|
||||
- std.debug.print(") ", .{}); // <---- how?!
|
||||
+ defer std.debug.print(") ", .{}); // <---- how?!
|
||||
|
||||
if (animal == 'g') {
|
||||
std.debug.print("Goat", .{});
|
||||
|
||||
Reference in New Issue
Block a user