mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-25 23:04:17 -05:00
fix: clean up "return" wording in iterators4
This commit is contained in:
parent
3eabf2aafc
commit
d8ecf4bc2d
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
||||||
pub fn factorial(num: u64) -> u64 {
|
pub fn factorial(num: u64) -> u64 {
|
||||||
// Complete this function to return the factorial of num
|
// Complete this function to return the factorial of num
|
||||||
// Do not use:
|
// Do not use:
|
||||||
// - return
|
// - early returns (using the `return` keyword explicitly)
|
||||||
// Try not to use:
|
// Try not to use:
|
||||||
// - imperative style loops (for, while)
|
// - imperative style loops (for, while)
|
||||||
// - additional variables
|
// - additional variables
|
||||||
|
|
Loading…
Reference in a new issue