Skip to content

Commit 40a38b0

Browse files
committed
update the unstable book
1 parent 363db14 commit 40a38b0

File tree

1 file changed

+3
-3
lines changed
  • src/doc/unstable-book/src/language-features

1 file changed

+3
-3
lines changed

src/doc/unstable-book/src/language-features/used.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ This condition can be met using `#[used]` and `#[link_section]` plus a linker
8787
script.
8888

8989
``` rust,ignore
90-
#![feature(panic_implementation)]
90+
#![feature(panic_handler)]
9191
#![feature(used)]
9292
#![no_main]
9393
#![no_std]
@@ -102,8 +102,8 @@ extern "C" fn reset_handler() -> ! {
102102
#[used]
103103
static RESET_HANDLER: extern "C" fn() -> ! = reset_handler;
104104
105-
#[panic_implementation]
106-
fn panic_impl(info: &PanicInfo) -> ! {
105+
#[panic_handler]
106+
fn panic(info: &PanicInfo) -> ! {
107107
loop {}
108108
}
109109
```

0 commit comments

Comments
 (0)