Skip to content

Commit 4af7f48

Browse files
committed
Merge pull request #4 from raventid/patch-1
Correct typo in fibonacci.rs : Use recursive fn inside of a recursive fn. Thanks @raventid !
2 parents 5645280 + b75c445 commit 4af7f48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fibonacci.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pub fn fibonacci_reccursive(n: i32) -> u64 {
4343
/*
4444
50 => 12586269025,
4545
*/
46-
_ => fibonacci(n - 1) + fibonacci(n - 2)
46+
_ => fibonacci_reccursive(n - 1) + fibonacci_reccursive(n - 2)
4747
}
4848
}
4949

0 commit comments

Comments
 (0)