Hi,
> 
> fn fib1 (n:int) -> int {
>     if (n <= 1) { 1 }
>     else { n * fib1 (n - 1) }
> }
Wrong function name. That's "fac". ;-)

"fib" is 
     ...
     else { fib1 (n - 1) + fib1 (n - 2) }

-- Matthias Urlichs

_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to