mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-10 17:09:59 +00:00
12 lines
452 B
Diff
12 lines
452 B
Diff
--- exercises/104_for5.zig 2025-08-15 15:17:57.839348063 +0200
|
|
+++ answers/104_for5.zig 2026-04-02 10:51:15.803831499 +0200
|
|
@@ -51,7 +51,7 @@
|
|
|
|
// We would like to number our list starting with 1, not 0.
|
|
// How do we do that?
|
|
- for (roles, gold, experience, ???) |c, g, e, i| {
|
|
+ for (roles, gold, experience, 1..) |c, g, e, i| {
|
|
const role_name = switch (c) {
|
|
.wizard => "Wizard",
|
|
.thief => "Thief",
|