mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-27 00:00:03 +03:00
fix: clean up "return" wording in iterators4
This commit is contained in:
parent
3eabf2aafc
commit
d8ecf4bc2d
|
@ -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