summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMarcel Ribeiro-Dantas <ribeirodantasdm@gmail.com>2023-03-25 22:34:56 -0300
committerGitHub <noreply@github.com>2023-03-25 22:34:56 -0300
commite7c25112de210738bb9c342b1559db151b2d5459 (patch)
treed5d4f499f5513345ddca501e7cac7136a7c3cd35
parent6ac5983d5abe502ef98ae49e9a4b40de21f3dc73 (diff)
parent07ffb8314f260ddabe8a7f01278f01df098c28c6 (diff)
Merge pull request #4628 from jamesbvaughan/james/fib-output
[rust/en] Add fibonacci example output comment
-rw-r--r--rust.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust.html.markdown b/rust.html.markdown
index 9e07e005..c677ed96 100644
--- a/rust.html.markdown
+++ b/rust.html.markdown
@@ -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 //