fix some typos

Signed-off-by: cuishuang <imcusg@gmail.com>
This commit is contained in:
cuishuang 2022-04-22 21:01:53 +08:00
parent db89fef127
commit 564212b685
3 changed files with 4 additions and 4 deletions

View file

@ -12,7 +12,7 @@ pub fn main(argc: usize, argv: &[&str]) -> i32 {
assert!(argc == 2);
let fd = open(argv[1], OpenFlags::RDONLY);
if fd == -1 {
panic!("Error occured when opening file");
panic!("Error occurred when opening file");
}
let fd = fd as usize;
let mut buf = [0u8; 256];