Skip to content

Commit b75c445

Browse files
committed
use recursive fn inside of a recursive fn
1 parent 5645280 commit b75c445

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)