From 131be53b1abef14bcc5324b117fb3a76595fb4ce Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Tue, 5 Feb 2019 22:17:57 +0100 Subject: [PATCH] Add missing [panic] link --- .../second-edition/posts/01-freestanding-rust-binary/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/blog/content/second-edition/posts/01-freestanding-rust-binary/index.md b/blog/content/second-edition/posts/01-freestanding-rust-binary/index.md index 50ebe5e9..a6bb59c0 100644 --- a/blog/content/second-edition/posts/01-freestanding-rust-binary/index.md +++ b/blog/content/second-edition/posts/01-freestanding-rust-binary/index.md @@ -127,6 +127,8 @@ Now the compiler is missing a `#[panic_handler]` function and a _language item_. The `panic_handler` attribute defines the function that the compiler should invoke when a [panic] occurs. The standard library provides its own panic handler function, but in a `no_std` environment we need to define it ourselves: +[panic]: https://doc.rust-lang.org/stable/book/ch09-01-unrecoverable-errors-with-panic.html + ```rust // in main.rs