summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--exercises/18_iterators/iterators4.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/exercises/18_iterators/iterators4.rs b/exercises/18_iterators/iterators4.rs
index 8381dbb..c296f0e 100644
--- a/exercises/18_iterators/iterators4.rs
+++ b/exercises/18_iterators/iterators4.rs
@@ -1,5 +1,8 @@
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` which is
+ // defined as `1 * 2 * 3 * … * num`.
+ // https://en.wikipedia.org/wiki/Factorial
+ //
// Do not use:
// - early returns (using the `return` keyword explicitly)
// Try not to use: