TRPL: Add rust Marker to Some Code Block

This adds strictly more information to the source files and reduces the
need for customized tooling to render the book.

(While this should not change the output of _rustbook_, it is very
useful when rendering the sources with external tools like Pandoc.)
This commit is contained in:
Pascal Hertleif 2015-05-18 20:56:00 +02:00
parent 2dd5ad0be8
commit 6f69cd6387
21 changed files with 72 additions and 71 deletions

View file

@ -195,7 +195,7 @@ parameter can be added to the `should_panic` attribute. The test harness will
make sure that the failure message contains the provided text. A safer version
of the example above would be:
```
```rust
#[test]
#[should_panic(expected = "assertion failed")]
fn it_works() {