Skip to content

Commit

Permalink
Fix typo get openoptions function name
Browse files Browse the repository at this point in the history
Co-authored-by: Ivan Tham <pickfire@riseup.net>
  • Loading branch information
FedericoPonzi and pickfire committed Aug 30, 2020
1 parent 27c90b8 commit eb3906b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/sys/unix/fs.rs
Expand Up @@ -963,7 +963,7 @@ pub fn rename(old: &Path, new: &Path) -> io::Result<()> {
Ok(())
}

pub fn get_openopetions_as_cint(from: OpenOptions) -> io::Result<libc::c_int> {
pub fn get_openoptions_as_cint(from: OpenOptions) -> io::Result<libc::c_int> {
let access_mode = from.get_access_mode()?;
let creation_mode = from.get_creation_mode()?;
Ok(creation_mode | access_mode)
Expand Down

0 comments on commit eb3906b

Please sign in to comment.