about summary refs log tree commit diff
diff options
context:
space:
mode:
authorStefan Schindler <dns2utf8@estada.ch>2017-06-15 11:36:32 +0200
committerStefan Schindler <dns2utf8@estada.ch>2017-06-15 11:36:32 +0200
commit84b880d55e5b154d9649107ac583de7591a81823 (patch)
tree79675f8ba3d9ae744244822ea270e5e20572a447
parent0189cec5d4e782ca17dd510934e93a7bd327ba86 (diff)
downloadrust-84b880d55e5b154d9649107ac583de7591a81823.tar.gz
rust-84b880d55e5b154d9649107ac583de7591a81823.zip
Add hint about the return code of panic!
-rw-r--r--src/libcore/macros.rs2
-rw-r--r--src/libstd/macros.rs2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/libcore/macros.rs b/src/libcore/macros.rs
index d68fad4972c..537d925c8fa 100644
--- a/src/libcore/macros.rs
+++ b/src/libcore/macros.rs
@@ -456,7 +456,7 @@ macro_rules! writeln {
 ///
 /// # Panics
 ///
-/// This will always panic.
+/// This will always [panic!](macro.panic.html).
 ///
 /// # Examples
 ///
diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs
index df3fce0da76..547e840ffb7 100644
--- a/src/libstd/macros.rs
+++ b/src/libstd/macros.rs
@@ -24,6 +24,8 @@
 /// The multi-argument form of this macro panics with a string and has the
 /// `format!` syntax for building a string.
 ///
+/// If the main thread panics it will return with code `101`.
+///
 /// # Examples
 ///
 /// ```should_panic