summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJames Vaughan <james@jamesbvaughan.com>2023-03-24 23:21:11 -0700
committerJames Vaughan <james@jamesbvaughan.com>2023-03-24 23:21:11 -0700
commit07ffb8314f260ddabe8a7f01278f01df098c28c6 (patch)
treed5d4f499f5513345ddca501e7cac7136a7c3cd35
parent6ac5983d5abe502ef98ae49e9a4b40de21f3dc73 (diff)
Add fibonacci 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 //