From 01343f187b0541ab2e210f831c56ef9103ce8c60 Mon Sep 17 00:00:00 2001 From: mo8it Date: Mon, 8 Jul 2024 16:29:43 +0200 Subject: [PATCH] Explain what a factorial is and link to wikipedia for more details --- exercises/18_iterators/iterators4.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/exercises/18_iterators/iterators4.rs b/exercises/18_iterators/iterators4.rs index 8381dbb1..c296f0e4 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: