sample-code: update for new WIP syntax (it's more persnickety)

This commit is contained in:
2025-10-19 19:27:09 -04:00
parent 6b24980fc7
commit b54826cdd5
7 changed files with 46 additions and 42 deletions

View File

@@ -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 }
}