Skip to content

Commit 92cff9f

Browse files
committed
Rollup merge of #28819 - steveklabnik:doc_hr, r=brson
It's not really clear here, since the example is rendered, where it starts and ends. So let's use <hr>s to split it up.
2 parents 323037d + f528c47 commit 92cff9f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/doc/trpl/documentation.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,8 @@ println!("{}", x + y);
279279

280280
Here's an explanation, rendered:
281281

282+
-------------------------------------------------------------------------------
283+
282284
First, we set `x` to five:
283285

284286
```rust
@@ -303,8 +305,12 @@ Finally, we print the sum of `x` and `y`:
303305
println!("{}", x + y);
304306
```
305307

308+
-------------------------------------------------------------------------------
309+
306310
Here's the same explanation, in raw text:
307311

312+
-------------------------------------------------------------------------------
313+
308314
> First, we set `x` to five:
309315
>
310316
> ```text
@@ -329,6 +335,8 @@ Here's the same explanation, in raw text:
329335
> println!("{}", x + y);
330336
> ```
331337
338+
-------------------------------------------------------------------------------
339+
332340
By repeating all parts of the example, you can ensure that your example still
333341
compiles, while only showing the parts that are relevant to that part of your
334342
explanation.

0 commit comments

Comments
 (0)