Skip to content

Commit

Permalink
Adjust wording #40301
Browse files Browse the repository at this point in the history
  • Loading branch information
projektir committed Mar 13, 2017
1 parent 0644773 commit eb203d5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/doc/book/src/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,6 @@ more than one section:
# fn foo() {}
```

Let's discuss the details of these code blocks.

#### Code block annotations

To write some Rust code in a comment, use the triple graves:
Expand All @@ -183,6 +181,9 @@ To write some Rust code in a comment, use the triple graves:
# fn foo() {}
```

This will add code highlighting. If you are only showing plain text, put `text`
instead of `rust` after the triple graves (see below).

## Documentation as tests

Let's discuss our sample example documentation:
Expand Down

0 comments on commit eb203d5

Please sign in to comment.