Skip to content

Add in some <hr>s for emphasis #28819

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 3, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/doc/trpl/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,8 @@ println!("{}", x + y);

Here's an explanation, rendered:

-------------------------------------------------------------------------------

First, we set `x` to five:

```rust
Expand All @@ -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
Expand All @@ -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.
Expand Down