From f528c47c4bb836dd7277dc7ce138a41d175e1dd3 Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Fri, 2 Oct 2015 18:54:07 -0400 Subject: [PATCH] Add in some
s for emphasis It's not really clear here, since the example is rendered, where it starts and ends. So let's use
s to split it up. --- src/doc/trpl/documentation.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/doc/trpl/documentation.md b/src/doc/trpl/documentation.md index 5afb9b7f868c8..1e1b2e2d4588b 100644 --- a/src/doc/trpl/documentation.md +++ b/src/doc/trpl/documentation.md @@ -279,6 +279,8 @@ println!("{}", x + y); Here's an explanation, rendered: +------------------------------------------------------------------------------- + First, we set `x` to five: ```rust @@ -303,8 +305,12 @@ Finally, we print the sum of `x` and `y`: println!("{}", x + y); ``` +------------------------------------------------------------------------------- + Here's the same explanation, in raw text: +------------------------------------------------------------------------------- + > First, we set `x` to five: > > ```text @@ -329,6 +335,8 @@ Here's the same explanation, in raw text: > println!("{}", x + y); > ``` +------------------------------------------------------------------------------- + By repeating all parts of the example, you can ensure that your example still compiles, while only showing the parts that are relevant to that part of your explanation.