Skip to content

Commit 55d9e0f

Browse files
committed
Include output stream in panic!() documentation
1 parent b4adc21 commit 55d9e0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/macros/panic.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ tests. `panic!` is closely tied with the `unwrap` method of both
1010
`panic!` when they are set to [`None`] or [`Err`] variants.
1111

1212
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.
13+
panic entirely. The string built by this macro (using the [`format!`] syntax
14+
for building the actual message) is printed to `stderr`.
1515

1616
Each thread's panic can be reaped as the [`Box`]`<`[`Any`]`>` type,
1717
which contains either a `&str` or `String` for regular `panic!()` invocations.

0 commit comments

Comments
 (0)