diff --git a/src/panic-implementation.md b/src/panic-implementation.md index 4cb4ebb6f..497c81fd0 100644 --- a/src/panic-implementation.md +++ b/src/panic-implementation.md @@ -36,9 +36,9 @@ Actually resolving this goes through several layers of indirection: ```rust /// Entry point of panic from the libcore crate. -[cfg(not(test))] -[panic_handler] -[unwind(allowed)] +#[cfg(not(test))] +#[panic_handler] +#[unwind(allowed)] pub fn begin_panic_handler(info: &PanicInfo<'_>) -> ! { ... }