Add solutions
This commit is contained in:
parent
7417f01d5d
commit
b056b6ad81
96 changed files with 229 additions and 166 deletions
|
|
@ -51,7 +51,7 @@ pub fn main() void {
|
|||
|
||||
// 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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue