mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-02 18:12:51 +00:00
Fix typo get openoptions function name
Co-authored-by: Ivan Tham <pickfire@riseup.net>
This commit is contained in:
parent
27c90b881d
commit
eb3906be4a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user