Fix documentation example in the book
The code sections shouldn't be inside a ```text block.
This commit is contained in:
parent
32d962d16f
commit
cff81d724f
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue