diff --git a/_sources/chapter1/3mini-rt-usrland.rst.txt b/_sources/chapter1/3mini-rt-usrland.rst.txt index 2df0a3d..a9fbef7 100644 --- a/_sources/chapter1/3mini-rt-usrland.rst.txt +++ b/_sources/chapter1/3mini-rt-usrland.rst.txt @@ -233,7 +233,8 @@ Rust 的 core 库内建了以一系列帮助实现显示字符的基本 Trait #[no_mangle] extern "C" fn _start() { - println!("Hello, world!"); + print!("Hello, ""); + println!("world!"); sys_exit(9); } diff --git a/chapter1/3mini-rt-usrland.html b/chapter1/3mini-rt-usrland.html index 8b0c601..5a57be3 100644 --- a/chapter1/3mini-rt-usrland.html +++ b/chapter1/3mini-rt-usrland.html @@ -475,9 +475,10 @@ #[no_mangle] extern "C" fn _start() { - println!("Hello, world!"); - sys_exit(9); -} + print!("Hello, ""); + println!("world!"); + sys_exit(9); +}
现在,我们编译并执行一下,可以看到正确的字符串输出,且程序也能正确退出!