Rollup merge of #31537 - ollie27:book_doc_example, r=steveklabnik

The code sections shouldn't be inside a ```text block.

r? @steveklabnik
This commit is contained in:
Manish Goregaokar 2016-02-14 03:59:09 +05:30
commit 1c5c2f548e

View File

@ -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);