mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-26 07:14:17 -05:00
fix(option1): Add cast to usize, as it is confusing in the context of an exercise about Option
This commit is contained in:
parent
1da84b5f7c
commit
f6cffc7e48
1 changed files with 1 additions and 1 deletions
|
@ -18,6 +18,6 @@ fn main() {
|
||||||
((iter * 5) + 2) / (4 * 16)
|
((iter * 5) + 2) / (4 * 16)
|
||||||
};
|
};
|
||||||
|
|
||||||
numbers[iter] = number_to_add;
|
numbers[iter as usize] = number_to_add;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue