mirror of
https://github.com/notohh/rustlings.git
synced 2024-10-30 16:59:12 -04:00
fix(option1): Don't add only zeros to the numbers array
This commit is contained in:
parent
06ef4cc654
commit
cce6a44277
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ fn main() {
|
||||||
let mut numbers: [Option<u16>; 5];
|
let mut numbers: [Option<u16>; 5];
|
||||||
for iter in 0..5 {
|
for iter in 0..5 {
|
||||||
let number_to_add: u16 = {
|
let number_to_add: u16 = {
|
||||||
((iter * 5) + 2) / (4 * 16)
|
((iter * 1235) + 2) / (4 * 16)
|
||||||
};
|
};
|
||||||
|
|
||||||
numbers[iter as usize] = number_to_add;
|
numbers[iter as usize] = number_to_add;
|
||||||
|
|
Loading…
Reference in a new issue