docs(fibonacci2): correct typo

This has a deliberate error for code-review training
This commit is contained in:
davhojt 2022-08-02 17:23:31 +03:00 committed by Dav Hojt
parent 975ea7272b
commit 31b4331600
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ This function receives a number `n` and returns the `n`th number in the fibonacc
The Fibonacci Series starts like this: 0, 1, 1, 2, 3, 5, 8, 13 etc...
### Usage
### Usag
Here is a possible test for your function:
@ -21,7 +21,7 @@ Here is a possible test for your function:
use fibonacci2::fibonacci;
fn main() {
println!("The element in the position {} in fibonacci series is {}",2, fibonacci(2));
println!("The element in the position {} in fibonacci series is {}",2, fibonacci(2));
println!("The element in the position {} in fibonacci series is {}",4, fibonacci(4));
println!("The element in the position {} in fibonacci series is {}",22, fibonacci(22));
println!("The element in the position {} in fibonacci series is {}", 20, fibonacci(20));