Skip to content

Commit 84b880d

Browse files
committed
Add hint about the return code of panic!
1 parent 0189cec commit 84b880d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/libcore/macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ macro_rules! writeln {
456456
///
457457
/// # Panics
458458
///
459-
/// This will always panic.
459+
/// This will always [panic!](macro.panic.html).
460460
///
461461
/// # Examples
462462
///

src/libstd/macros.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
/// The multi-argument form of this macro panics with a string and has the
2525
/// `format!` syntax for building a string.
2626
///
27+
/// If the main thread panics it will return with code `101`.
28+
///
2729
/// # Examples
2830
///
2931
/// ```should_panic

0 commit comments

Comments
 (0)