about summary refs log tree commit diff
path: root/src/doc/unstable-book
diff options
context:
space:
mode:
authorJorge Aparicio <jorge@japaric.io>2018-08-23 21:44:45 +0200
committerJorge Aparicio <jorge@japaric.io>2018-08-23 21:44:45 +0200
commit40a38b01641d453a7b0f4d6af853d06b8cfef161 (patch)
tree1095adf9dd7b35f0ba50877f003191a38ff80e80 /src/doc/unstable-book
parent363db147042bbb1461071b27c43bb9ab405943c8 (diff)
downloadrust-40a38b01641d453a7b0f4d6af853d06b8cfef161.tar.gz
rust-40a38b01641d453a7b0f4d6af853d06b8cfef161.zip
update the unstable book
Diffstat (limited to 'src/doc/unstable-book')
-rw-r--r--src/doc/unstable-book/src/language-features/used.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/doc/unstable-book/src/language-features/used.md b/src/doc/unstable-book/src/language-features/used.md
index c3b7f2e41e1..d49271382b6 100644
--- a/src/doc/unstable-book/src/language-features/used.md
+++ b/src/doc/unstable-book/src/language-features/used.md
@@ -87,7 +87,7 @@ This condition can be met using `#[used]` and `#[link_section]` plus a linker
 script.
 
 ``` rust,ignore
-#![feature(panic_implementation)]
+#![feature(panic_handler)]
 #![feature(used)]
 #![no_main]
 #![no_std]
@@ -102,8 +102,8 @@ extern "C" fn reset_handler() -> ! {
 #[used]
 static RESET_HANDLER: extern "C" fn() -> ! = reset_handler;
 
-#[panic_implementation]
-fn panic_impl(info: &PanicInfo) -> ! {
+#[panic_handler]
+fn panic(info: &PanicInfo) -> ! {
     loop {}
 }
 ```