Skip to content

Commit fcceee4

Browse files
authored
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
1 parent 3f39ba8 commit fcceee4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

guide/src/format/example.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
fn main() {
22
println!("Hello World!");
33
#
4-
# // You can even hide lines! :D
5-
# println!("I am hidden! Expand the code snippet to see me");
4+
# // You can even hide lines! :D
5+
# println!("I am hidden! Expand the code snippet to see me");
66
}

guide/src/format/mdbook.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ To call the `add_one` function, we pass it an `i32` and bind the returned value
156156
#
157157
# fn add_one(num: i32) -> i32 {
158158
# num + 1
159-
#}
159+
# }
160160
```
161161
````
162162

@@ -170,7 +170,7 @@ That is, it looks like this (click the "expand" icon to see the rest of the file
170170
#
171171
# fn add_one(num: i32) -> i32 {
172172
# num + 1
173-
#}
173+
# }
174174
```
175175

176176
## Inserting runnable Rust files

0 commit comments

Comments
 (0)