mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-01-14 13:15:59 +00:00
Merge pull request #4628 from jamesbvaughan/james/fib-output
[rust/en] Add fibonacci example output comment
This commit is contained in:
commit
e7c25112de
@ -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