about summary refs log tree commit diff
path: root/src/doc/rustdoc.md
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc/rustdoc.md')
-rw-r--r--src/doc/rustdoc.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/rustdoc.md b/src/doc/rustdoc.md
index f5fbad960a3..4b995631467 100644
--- a/src/doc/rustdoc.md
+++ b/src/doc/rustdoc.md
@@ -169,7 +169,7 @@ directive.
 
 ~~~md
 ```should_fail
-// This code block is expected to generate a failure when run
+// This code block is expected to generate a panic when run
 ```
 ~~~
 
@@ -189,7 +189,7 @@ were passed to the compiler using the `test_harness` directive.
 ```test_harness
 #[test]
 fn foo() {
-    fail!("oops! (will run & register as failure)")
+    panic!("oops! (will run & register as a failed test)")
 }
 ```
 ~~~