Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbc5e618

Browse files
committed
Update doc comment on PanicInfo::message().
1 parent249d63e commitbc5e618

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎core/src/panic/panic_info.rs‎

Lines changed: 2 additions & 3 deletions
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
pubfnmessage(&self) -> fmt::Arguments<'_>{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp