diff options
author | Boris Verkhovskiy <boris.verk@gmail.com> | 2024-04-03 04:31:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-03 04:31:13 -0700 |
commit | fbf132752b743d0f43c3395da0699bee53da22df (patch) | |
tree | 56da43c86e1aebd24e3913b405e21d6f2812e9a3 /rust.html.markdown | |
parent | 247dc6e86c1421fa031e4b61c42c05ca6e09bfb0 (diff) | |
parent | c166f2acb295627c5ae305a6dd517a27ca8fece6 (diff) |
Merge branch 'master' into patch-1
Diffstat (limited to 'rust.html.markdown')
-rw-r--r-- | rust.html.markdown | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/rust.html.markdown b/rust.html.markdown index 9e07e005..526d20d5 100644 --- a/rust.html.markdown +++ b/rust.html.markdown @@ -30,6 +30,9 @@ Rust not only fast, but also easy and efficient to code in. // This is a comment. Line comments look like this... // and extend multiple lines like this. +/* Block comments + /* can be nested. */ */ + /// Documentation comments look like this and support markdown notation. /// # Examples /// @@ -223,7 +226,7 @@ fn main() { type FunctionPointer = fn(u32) -> u32; let fib : FunctionPointer = fibonacci; - println!("Fib: {}", fib(4)); + println!("Fib: {}", fib(4)); // 5 ///////////////////////// // 3. Pattern matching // |