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
|
@ -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