about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorOliver Middleton <olliemail27@gmail.com>2016-02-10 14:53:42 +0000
committerOliver Middleton <olliemail27@gmail.com>2016-02-10 17:19:27 +0000
commitcff81d724fa73003fe7e589a9433db33dde742a6 (patch)
tree5f61216565f49caef357ca9e21a95adcefcc63d7 /src
parent32d962d16fc0abcb63fd705b3cde35025da77a13 (diff)
downloadrust-cff81d724fa73003fe7e589a9433db33dde742a6.tar.gz
rust-cff81d724fa73003fe7e589a9433db33dde742a6.zip
Fix documentation example in the book
The code sections shouldn't be inside a ```text block.
Diffstat (limited to 'src')
-rw-r--r--src/doc/book/documentation.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/doc/book/documentation.md b/src/doc/book/documentation.md
index ede3100194e..8d1e58ac173 100644
--- a/src/doc/book/documentation.md
+++ b/src/doc/book/documentation.md
@@ -319,7 +319,7 @@ our source code:
 ```text
     First, we set `x` to five:
 
-    ```text
+    ```rust
     let x = 5;
     # let y = 6;
     # println!("{}", x + y);
@@ -327,7 +327,7 @@ our source code:
 
     Next, we set `y` to six:
 
-    ```text
+    ```rust
     # let x = 5;
     let y = 6;
     # println!("{}", x + y);
@@ -335,7 +335,7 @@ our source code:
 
     Finally, we print the sum of `x` and `y`:
 
-    ```text
+    ```rust
     # let x = 5;
     # let y = 6;
     println!("{}", x + y);