We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
panic!()
1 parent b4adc21 commit 55d9e0fCopy full SHA for 55d9e0f
library/core/src/macros/panic.md
@@ -10,8 +10,8 @@ tests. `panic!` is closely tied with the `unwrap` method of both
10
`panic!` when they are set to [`None`] or [`Err`] variants.
11
12
This macro is used to inject panic into a Rust thread, causing the thread to
13
-panic entirely. This macro panics with a string and uses the [`format!`] syntax
14
-for building the message.
+panic entirely. The string built by this macro (using the [`format!`] syntax
+for building the actual message) is printed to `stderr`.
15
16
Each thread's panic can be reaped as the [`Box`]`<`[`Any`]`>` type,
17
which contains either a `&str` or `String` for regular `panic!()` invocations.
0 commit comments