Rollup merge of #42670 - dns2utf8:panic_return_code, r=steveklabnik
Add hint about the return code of panic! I hope the link works on all cases, since the `unreachable` doc is copied to `std::` as well.
This commit is contained in:
commit
500518ab72
2 changed files with 6 additions and 1 deletions
|
|
@ -462,7 +462,7 @@ macro_rules! writeln {
|
|||
///
|
||||
/// # Panics
|
||||
///
|
||||
/// This will always panic.
|
||||
/// This will always [panic!](macro.panic.html)
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
|
|
|
|||
|
|
@ -24,6 +24,11 @@
|
|||
/// 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 terminate all your threads and end your
|
||||
/// program with code `101`.
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// ```should_panic
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue