Skip to content

Commit

Permalink
Update doc comment on PanicInfo::message().
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ou-se committed Jun 12, 2024
1 parent 249d63e commit bc5e618
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/src/panic/panic_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ impl<'a> PanicInfo<'a> {
PanicInfo { location, message, can_unwind, force_no_backtrace }
}

/// If the `panic!` macro from the `core` crate (not from `std`)
/// was used with a formatting string and some additional arguments,
/// returns that message ready to be used for example with [`fmt::write`]
/// The message that was given to the `panic!` macro,
/// ready to be formatted with e.g. [`fmt::write`].
#[must_use]
#[unstable(feature = "panic_info_message", issue = "66745")]
pub fn message(&self) -> fmt::Arguments<'_> {
Expand Down

0 comments on commit bc5e618

Please sign in to comment.