Fix documentation example in the book

The code sections shouldn't be inside a ```text block.
This commit is contained in:
Oliver Middleton 2016-02-10 14:53:42 +00:00
parent 32d962d16f
commit cff81d724f

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