mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Merge pull request #1347 from elchukc/fix_typo_start_return_type
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
|
// in src/main.rs
|
||||||
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub extern "C" fn _start() {
|
pub extern "C" fn _start() -> ! {
|
||||||
println!("Hello World{}", "!");
|
println!("Hello World{}", "!");
|
||||||
|
|
||||||
loop {}
|
loop {}
|
||||||
|
|||||||
Reference in New Issue
Block a user