mirror of
https://github.com/rcore-os/rCore-Tutorial-v3.git
synced 2024-11-23 01:46:24 +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 {
|
if size == 0 {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
println!("{}", core::str::from_utf8(&buf[..size]).unwrap());
|
print!("{}", core::str::from_utf8(&buf[..size]).unwrap());
|
||||||
}
|
}
|
||||||
close(fd);
|
close(fd);
|
||||||
0
|
0
|
||||||
|
Loading…
Reference in New Issue
Block a user