From bb754eadba0e9552ce2c429ba8219e4426f00057 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Sun, 30 Apr 2023 16:53:25 +0200 Subject: [PATCH] Link to stable Rust docs --- blog/content/edition-3/posts/01-minimal-kernel/index.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/blog/content/edition-3/posts/01-minimal-kernel/index.md b/blog/content/edition-3/posts/01-minimal-kernel/index.md index dc26c6c4..a3df1e9e 100644 --- a/blog/content/edition-3/posts/01-minimal-kernel/index.md +++ b/blog/content/edition-3/posts/01-minimal-kernel/index.md @@ -82,7 +82,7 @@ We name the project `kernel` here, but of course you can choose your own name. The `--bin` flag specifies that we want to create an executable binary (in contrast to a library) and the `--edition 2021` flag specifies that we want to use the [2021 edition] of Rust for our crate. When we run the command, cargo creates the following directory structure for us: -[2021 edition]: https://doc.rust-lang.org/nightly/edition-guide/rust-2021/index.html +[2021 edition]: https://doc.rust-lang.org/edition-guide/rust-2021/index.html ``` kernel @@ -181,9 +181,9 @@ The [`PanicInfo` parameter][PanicInfo] contains the file and line where the pani The handler function should never return, so it is marked as a [diverging function] by returning the [“never” type] `!`. There is not much we can do in this function for now, so we just loop indefinitely. -[PanicInfo]: https://doc.rust-lang.org/nightly/core/panic/struct.PanicInfo.html +[PanicInfo]: https://doc.rust-lang.org/core/panic/struct.PanicInfo.html [diverging function]: https://doc.rust-lang.org/1.30.0/book/first-edition/functions.html#diverging-functions -[“never” type]: https://doc.rust-lang.org/nightly/std/primitive.never.html +[“never” type]: https://doc.rust-lang.org/std/primitive.never.html After defining a panic handler, only the `eh_personality` language item error remains: