mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-10 17:09:59 +00:00
12 lines
434 B
Diff
12 lines
434 B
Diff
--- exercises/103_for4.zig 2025-08-15 15:17:57.839348063 +0200
|
|
+++ answers/103_for4.zig 2026-04-02 10:51:15.801831460 +0200
|
|
@@ -39,7 +39,7 @@
|
|
const hex_nums = [_]u8{ 0xb, 0x2a, 0x77 };
|
|
const dec_nums = [_]u8{ 11, 42, 119 };
|
|
|
|
- for (hex_nums, ???) |hn, ???| {
|
|
+ for (hex_nums, dec_nums) |hn, dn| {
|
|
if (hn != dn) {
|
|
print("Uh oh! Found a mismatch: {d} vs {d}\n", .{ hn, dn });
|
|
return;
|