From fcceee4761a47a3abddbe3841d7b3be4b45a70e2 Mon Sep 17 00:00:00 2001 From: mbartlett21 <29034492+mbartlett21@users.noreply.github.com> Date: Sat, 27 Feb 2021 11:40:14 +1000 Subject: [PATCH] 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 --- guide/src/format/example.rs | 4 ++-- guide/src/format/mdbook.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/guide/src/format/example.rs b/guide/src/format/example.rs index 6b49705c..a467cac1 100644 --- a/guide/src/format/example.rs +++ b/guide/src/format/example.rs @@ -1,6 +1,6 @@ fn main() { println!("Hello World!"); # -# // You can even hide lines! :D -# println!("I am hidden! Expand the code snippet to see me"); +# // You can even hide lines! :D +# println!("I am hidden! Expand the code snippet to see me"); } diff --git a/guide/src/format/mdbook.md b/guide/src/format/mdbook.md index f9dc7256..d9bf89f0 100644 --- a/guide/src/format/mdbook.md +++ b/guide/src/format/mdbook.md @@ -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 { # 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 { # num + 1 -#} +# } ``` ## Inserting runnable Rust files