sample-code: update for new WIP syntax (it's more persnickety)
This commit is contained in:
@@ -8,9 +8,5 @@ fn main() {
|
||||
|
||||
/// Implements the classic recursive definition of fib()
|
||||
fn fib(a: i64) -> i64 {
|
||||
if a > 1 {
|
||||
fib(a - 1) + fib(a - 2)
|
||||
} else {
|
||||
1
|
||||
}
|
||||
if a > 1 { fib(a - 1) + fib(a - 2) } else { a }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user