Skip to content

Commit

Permalink
add return type on _start() in code block
Browse files Browse the repository at this point in the history
  • Loading branch information
elchukc committed Sep 25, 2024
1 parent e4dd739 commit 4d3b246
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blog/content/edition-2/posts/03-vga-text-buffer/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ Now we can use `println` in our `_start` function:
// in src/main.rs

#[no_mangle]
pub extern "C" fn _start() {
pub extern "C" fn _start() -> ! {
println!("Hello World{}", "!");

loop {}
Expand Down

0 comments on commit 4d3b246

Please sign in to comment.