Update examples with hidden lines (#1476)

* Update example.rs to have correct indent

The three hidden lines in example.rs now have four spaces indent for the hidden lines.

* Update mdbook.md
This commit is contained in:
mbartlett21 2021-02-27 11:40:14 +10:00 committed by GitHub
parent 3f39ba82f9
commit fcceee4761
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -156,7 +156,7 @@ To call the `add_one` function, we pass it an `i32` and bind the returned value
# #
# fn add_one(num: i32) -> i32 { # fn add_one(num: i32) -> i32 {
# num + 1 # num + 1
#} # }
``` ```
```` ````
@ -170,7 +170,7 @@ That is, it looks like this (click the "expand" icon to see the rest of the file
# #
# fn add_one(num: i32) -> i32 { # fn add_one(num: i32) -> i32 {
# num + 1 # num + 1
#} # }
``` ```
## Inserting runnable Rust files ## Inserting runnable Rust files