From ba410f40baee4ffea859ab789148f34ebff238b8 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Thu, 28 Dec 2023 20:11:46 +0100 Subject: [PATCH] Fix source path --- blog/content/edition-3/posts/02-booting/index.md | 4 ++-- blog/content/edition-3/posts/03-screen-output/index.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/blog/content/edition-3/posts/02-booting/index.md b/blog/content/edition-3/posts/02-booting/index.md index af22c160..adc98202 100644 --- a/blog/content/edition-3/posts/02-booting/index.md +++ b/blog/content/edition-3/posts/02-booting/index.md @@ -1047,7 +1047,7 @@ Since the size, pixel format, and memory location of the framebuffer can vary be The easiest way to do this is to read it from the [boot information structure][`BootInfo`] that the bootloader passes as argument to our kernel entry point: ```rust ,hl_lines=3 7-13 -// in src/kernel/main.rs +// in kernel/src/main.rs use bootloader_api::BootInfo; @@ -1083,7 +1083,7 @@ For now, let's just try setting the whole screen to some color. For this, we just set every pixel in the byte slice to some fixed value: ```rust ,hl_lines=5-7 -// in src/kernel/main.rs +// in kernel/src/main.rs fn kernel_main(boot_info: &'static mut BootInfo) -> ! { if let Some(framebuffer) = boot_info.framebuffer.as_mut() { diff --git a/blog/content/edition-3/posts/03-screen-output/index.md b/blog/content/edition-3/posts/03-screen-output/index.md index e4862a7e..83a9ed08 100644 --- a/blog/content/edition-3/posts/03-screen-output/index.md +++ b/blog/content/edition-3/posts/03-screen-output/index.md @@ -44,7 +44,7 @@ We wrote some example code to display a gray background: [`BootInfo`]: https://docs.rs/bootloader_api/latest/bootloader_api/info/struct.BootInfo.html ```rust -// in src/kernel/main.rs +// in kernel/src/main.rs fn kernel_main(boot_info: &'static mut BootInfo) -> ! { if let Some(framebuffer) = boot_info.framebuffer.as_mut() {