Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bc5e618

Browse files
committedJun 12, 2024
Update doc comment on PanicInfo::message().
1 parent 249d63e commit bc5e618

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
 

‎core/src/panic/panic_info.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ impl<'a> PanicInfo<'a> {
2929
PanicInfo { location, message, can_unwind, force_no_backtrace }
3030
}
3131

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

0 commit comments

Comments
 (0)
Failed to load comments.