mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
Add fibonacci output comment
This commit is contained in:
parent
6ac5983d5a
commit
07ffb8314f
@ -223,7 +223,7 @@ fn main() {
|
||||
type FunctionPointer = fn(u32) -> u32;
|
||||
|
||||
let fib : FunctionPointer = fibonacci;
|
||||
println!("Fib: {}", fib(4));
|
||||
println!("Fib: {}", fib(4)); // 5
|
||||
|
||||
/////////////////////////
|
||||
// 3. Pattern matching //
|
||||
|
Loading…
Reference in New Issue
Block a user