mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 06:17:49 +00:00
add return type on _start() in code block
This commit is contained in:
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user