We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69021e1 commit 01343f1Copy full SHA for 01343f1
exercises/18_iterators/iterators4.rs
@@ -1,5 +1,8 @@
1
fn factorial(num: u64) -> u64 {
2
- // TODO: Complete this function to return the factorial of `num`.
+ // TODO: Complete this function to return the factorial of `num` which is
3
+ // defined as `1 * 2 * 3 * … * num`.
4
+ // https://en.wikipedia.org/wiki/Factorial
5
+ //
6
// Do not use:
7
// - early returns (using the `return` keyword explicitly)
8
// Try not to use:
0 commit comments