From 84b880d55e5b154d9649107ac583de7591a81823 Mon Sep 17 00:00:00 2001 From: Stefan Schindler Date: Thu, 15 Jun 2017 11:36:32 +0200 Subject: Add hint about the return code of panic! --- src/libstd/macros.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libstd') 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 -- cgit 1.4.1-3-g733a5 From d5390573ba468d4f1d06bf4f3ba6d54ec26c98c5 Mon Sep 17 00:00:00 2001 From: Stefan Schindler Date: Wed, 5 Jul 2017 21:16:58 +0200 Subject: Insert current implementation header --- src/libcore/macros.rs | 2 +- src/libstd/macros.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src/libstd') diff --git a/src/libcore/macros.rs b/src/libcore/macros.rs index 537d925c8fa..ceaab185716 100644 --- a/src/libcore/macros.rs +++ b/src/libcore/macros.rs @@ -456,7 +456,7 @@ macro_rules! writeln { /// /// # Panics /// -/// This will always [panic!](macro.panic.html). +/// This will always [panic!](macro.panic.html) /// /// # Examples /// diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs index 547e840ffb7..fbf2ba7f9a0 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. /// +/// # Current implementation +/// /// If the main thread panics it will return with code `101`. /// /// # Examples -- cgit 1.4.1-3-g733a5 From 9e001ce86522011ff716218f29dcd9dff082d20a Mon Sep 17 00:00:00 2001 From: Stefan Schindler Date: Wed, 5 Jul 2017 22:58:39 +0200 Subject: Be more specific about the implications of the panic! --- src/libstd/macros.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstd') diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs index fbf2ba7f9a0..a45d37b0792 100644 --- a/src/libstd/macros.rs +++ b/src/libstd/macros.rs @@ -26,7 +26,7 @@ /// /// # Current implementation /// -/// If the main thread panics it will return with code `101`. +/// If the main thread panics it will terminate all your threads and end your program with code `101`. /// /// # Examples /// -- cgit 1.4.1-3-g733a5 From 133c1bc9ac998d22a0028d2f2e15473f0d1d08ab Mon Sep 17 00:00:00 2001 From: Stefan Schindler Date: Tue, 11 Jul 2017 16:45:39 +0200 Subject: Wrap long line --- src/libstd/macros.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libstd') diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs index a45d37b0792..be0d1587aab 100644 --- a/src/libstd/macros.rs +++ b/src/libstd/macros.rs @@ -26,7 +26,8 @@ /// /// # Current implementation /// -/// If the main thread panics it will terminate all your threads and end your program with code `101`. +/// If the main thread panics it will terminate all your threads and end your +/// program with code `101`. /// /// # Examples /// -- cgit 1.4.1-3-g733a5