Skip to content

Commit 00c5996

Browse files
committed
Use correct path in panic!() comment.
1 parent 105b85f commit 00c5996

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/core/src/macros/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ macro_rules! panic {
2727
#[stable(feature = "core", since = "1.6.0")]
2828
#[rustc_diagnostic_item = "core_panic_macro"]
2929
macro_rules! panic {
30-
// Expands to either `$crate::panic_2015` or `$crate::panic_2021`
30+
// Expands to either `$crate::panic::panic_2015` or `$crate::panic::panic_2021`
3131
// depending on the edition of the caller.
3232
($($arg:tt)*) => {
3333
/* compiler built-in */

library/std/src/macros.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ macro_rules! panic {
2626
#[allow_internal_unstable(edition_panic)]
2727
#[cfg_attr(not(test), rustc_diagnostic_item = "std_panic_macro")]
2828
macro_rules! panic {
29-
// Expands to either `$crate::panic_2015` or `$crate::panic_2021`
29+
// Expands to either `$crate::panic::panic_2015` or `$crate::panic::panic_2021`
3030
// depending on the edition of the caller.
3131
($($arg:tt)*) => {
3232
/* compiler built-in */

0 commit comments

Comments
 (0)