]> git.lizzy.rs Git - rust.git/blobdiff - src/doc/trpl/testing.md
TRPL: Add `rust` Marker to Some Code Block
[rust.git] / src / doc / trpl / testing.md
index 45f87a6740597c6ac892c8732b3df881b16d7b42..f5fdb8f85901404ba0e8e384ff8a79d9a7d3ecdb 100644 (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() {