summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorKyle Mendes <pink401k@gmail.com>2016-06-26 15:46:16 -0400
committerven <vendethiel@hotmail.fr>2016-06-26 21:46:16 +0200
commit5d39704b57bc3e163df6f9ac510ea7e56439db0e (patch)
tree4a14eb3b2a458d50c2806b595eac949bdcb5e974
parent5ec0aba7783f7900bc97dda4a0ce68814442b6e4 (diff)
[rust/en] Updating comment examples (#1883)
-rw-r--r--rust.html.markdown12
1 files changed, 10 insertions, 2 deletions
diff --git a/rust.html.markdown b/rust.html.markdown
index 440cd9eb..cce91683 100644
--- a/rust.html.markdown
+++ b/rust.html.markdown
@@ -2,6 +2,7 @@
language: rust
contributors:
- ["P1start", "http://p1start.github.io/"]
+ - ["Pink401k", "http://github.com/Pink401k"]
filename: learnrust.rs
---
@@ -27,8 +28,15 @@ concepts that are generally found in higher-level languages. This makes
Rust not only fast, but also easy and efficient to code in.
```rust
-// This is a comment. Single-line look like this...
-/* ...and multi-line comment look like this */
+// This is a comment. Line comments look like this...
+// and extend multiple lines like this.
+
+/// Documentation comments look like this and support markdown notation.
+/// # Examples
+///
+/// ```
+/// let five = 5
+/// ```
///////////////
// 1. Basics //