mirror of
https://github.com/rcore-os/rCore-Tutorial-v3.git
synced 2024-11-22 17:36:25 +04:00
Fix cat
This commit is contained in:
parent
0d189e9ad7
commit
4a169450f8
@ -21,7 +21,7 @@ pub fn main(argc: usize, argv: &[&str]) -> i32 {
|
||||
if size == 0 {
|
||||
break;
|
||||
}
|
||||
println!("{}", core::str::from_utf8(&buf[..size]).unwrap());
|
||||
print!("{}", core::str::from_utf8(&buf[..size]).unwrap());
|
||||
}
|
||||
close(fd);
|
||||
0
|
||||
|
Loading…
Reference in New Issue
Block a user