fix some typos
Signed-off-by: cuishuang <imcusg@gmail.com>
This commit is contained in:
parent
db89fef127
commit
564212b685
3 changed files with 4 additions and 4 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue