Merge pull request from jamesbvaughan/james/fib-output

[rust/en] Add fibonacci example output comment
This commit is contained in:
Marcel Ribeiro-Dantas 2023-03-25 22:34:56 -03:00 committed by GitHub
commit e7c25112de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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