Fix typo.

This commit is contained in:
Mara Bos 2023-09-20 22:37:39 +02:00
parent 0d07b4c2ce
commit 667bba46b0

View File

@ -234,7 +234,7 @@ fn panic_in_cleanup() -> ! {
#[rustc_const_unstable(feature = "core_panic", issue = "none")]
pub const fn const_panic_fmt(fmt: fmt::Arguments<'_>) -> ! {
if let Some(msg) = fmt.as_str() {
// The panic_display function is hooked by conost eval.
// The panic_display function is hooked by const eval.
panic_display(&msg);
} else {
// SAFETY: This is only evaluated at compile time, which reliably