about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2016-08-22 20:39:20 -0400
committerCorey Farwell <coreyf@rwell.org>2016-08-22 20:39:20 -0400
commit66a2578064c2572a355f87f2405859a1c347b590 (patch)
treec2874044cc379e1321b54b40cf12f0a129bd39eb
parent3c5a0fa45b5e2786b6e64e27f48cd129e7aefdbd (diff)
downloadrust-66a2578064c2572a355f87f2405859a1c347b590.tar.gz
rust-66a2578064c2572a355f87f2405859a1c347b590.zip
Mark panicking tests as `should_panic` instead of `no_run`.
-rw-r--r--src/doc/book/macros.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/book/macros.md b/src/doc/book/macros.md
index 9f40829f423..78fe07ec1be 100644
--- a/src/doc/book/macros.md
+++ b/src/doc/book/macros.md
@@ -662,7 +662,7 @@ Here are some common macros you’ll see in Rust code.
 This macro causes the current thread to panic. You can give it a message
 to panic with:
 
-```rust,no_run
+```rust,should_panic
 panic!("oh no!");
 ```
 
@@ -688,7 +688,7 @@ These two macros are used in tests. `assert!` takes a boolean. `assert_eq!`
 takes two values and checks them for equality. `true` passes, `false` `panic!`s.
 Like this:
 
-```rust,no_run
+```rust,should_panic
 // A-ok!
 
 assert!(true);