diff options
| author | Chris Boesch <chrboesch@noreply.codeberg.org> | 2025-01-09 15:27:12 +0000 |
|---|---|---|
| committer | Chris Boesch <chrboesch@noreply.codeberg.org> | 2025-01-09 15:27:12 +0000 |
| commit | fabedb4a24e86548673dfed53fd8da261b0c6547 (patch) | |
| tree | e8e593bed7889dbcafa1b161aa7ced4d4c6bb021 | |
| parent | b1fcca9d82a6f95543a27a3bf820154be4944923 (diff) | |
| parent | 6b29634279f2a82ee71159f49d93ceea19869e8d (diff) | |
Merge pull request 'Use print alias in exercise 100_for4.zig' (#198) from Zorgatone/ziglings-solutions:use-print-alias into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/198
| -rw-r--r-- | exercises/100_for4.zig | 4 | ||||
| -rw-r--r-- | patches/patches/100_for4.patch | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/exercises/100_for4.zig b/exercises/100_for4.zig index e0fa602..c8a1161 100644 --- a/exercises/100_for4.zig +++ b/exercises/100_for4.zig @@ -41,12 +41,12 @@ pub fn main() void { for (hex_nums, ???) |hn, ???| { if (hn != dn) { - std.debug.print("Uh oh! Found a mismatch: {d} vs {d}\n", .{ hn, dn }); + print("Uh oh! Found a mismatch: {d} vs {d}\n", .{ hn, dn }); return; } } - std.debug.print("Arrays match!\n", .{}); + print("Arrays match!\n", .{}); } // // You are perhaps wondering what happens if one of the two lists diff --git a/patches/patches/100_for4.patch b/patches/patches/100_for4.patch index 3539be2..ad73e9a 100644 --- a/patches/patches/100_for4.patch +++ b/patches/patches/100_for4.patch @@ -7,5 +7,5 @@ - for (hex_nums, ???) |hn, ???| { + for (hex_nums, dec_nums) |hn, dn| { if (hn != dn) { - std.debug.print("Uh oh! Found a mismatch: {d} vs {d}\n", .{ hn, dn }); + print("Uh oh! Found a mismatch: {d} vs {d}\n", .{ hn, dn }); return; |
