From c2dcaf309953cfa89947e359db93c2c2b13f19ba Mon Sep 17 00:00:00 2001 From: Zorgatone Date: Tue, 7 Jan 2025 15:21:36 +0000 Subject: [PATCH 1/2] Use print alias in exercise 100_for4.zig --- exercises/100_for4.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 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 From 6b29634279f2a82ee71159f49d93ceea19869e8d Mon Sep 17 00:00:00 2001 From: Zorgatone Date: Tue, 7 Jan 2025 15:26:04 +0000 Subject: [PATCH 2/2] Fix patch after print alias fix in 100_fo4.zig --- patches/patches/100_for4.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;