mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-26 00:00:03 +03:00
Unify fn signature in iterators4 exercise and solution
Since this is not about conversion, prefer the option that doesn't require one.
This commit is contained in:
parent
47f8199a99
commit
a33501e6a7
|
@ -1,4 +1,4 @@
|
||||||
fn factorial(num: u8) -> u64 {
|
fn factorial(num: u64) -> u64 {
|
||||||
// TODO: Complete this function to return the factorial of `num`.
|
// TODO: Complete this function to return the factorial of `num`.
|
||||||
// Do not use:
|
// Do not use:
|
||||||
// - early returns (using the `return` keyword explicitly)
|
// - early returns (using the `return` keyword explicitly)
|
||||||
|
|
Loading…
Reference in a new issue