Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Include output stream in panic!() documentation
  • Loading branch information
jfrimmel committed Mar 18, 2021
commit 55d9e0f601d9154d99a2fec3d803b42cbf60ff2a
4 changes: 2 additions & 2 deletions library/core/src/macros/panic.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ tests. `panic!` is closely tied with the `unwrap` method of both
`panic!` when they are set to [`None`] or [`Err`] variants.

This macro is used to inject panic into a Rust thread, causing the thread to
panic entirely. This macro panics with a string and uses the [`format!`] syntax
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`.

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