From 44569ae82961548c4b68013a7279fffd7aa870b7 Mon Sep 17 00:00:00 2001 From: davhojt Date: Sun, 22 May 2022 10:07:13 +0300 Subject: [PATCH] docs(find_factorial): correct grammar --- subjects/find_factorial/README.md | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/subjects/find_factorial/README.md b/subjects/find_factorial/README.md index 3be7215e..b89c63ef 100644 --- a/subjects/find_factorial/README.md +++ b/subjects/find_factorial/README.md @@ -2,21 +2,19 @@ ### Instructions -Complete the **function** `factorial` to return the factorial of a given number. - -As a reminder the factorial of a number is the product of all the integers from 1 to that number. - -Example: the factorial of 6 (written 6!) is 1 \* 2 \* 3 \* 4 \* 5 \* 6 = 720. - -Do not forget the rules for 0 and 1. - -### Expected Function +Create a **function** named `factorial` which returns the factorial of a given number. ```rust pub fn factorial(num: u64) -> u64 { } ``` +As a reminder, the factorial of a number is the product of all the integers from 1 to that number. + +Example: the factorial of 6 (written 6!) is 1 \* 2 \* 3 \* 4 \* 5 \* 6 = 720. + +> Do not forget the rules for 0 and 1. + ### Usage Here is a possible program to test your function :