[doc] fix the reference to using OpenOptions::open

This commit is contained in:
Josh Stone 2019-10-28 13:03:18 -07:00
parent 096c99b6eb
commit 624e7d7cd0
2 changed files with 2 additions and 2 deletions

View file

@ -303,7 +303,7 @@ impl PermissionsExt for Permissions {
pub trait OpenOptionsExt {
/// Sets the mode bits that a new file will be created with.
///
/// If a new file is created as part of a `File::open_opts` call then this
/// If a new file is created as part of an `OpenOptions::open` call then this
/// specified `mode` will be used as the permission bits for the new file.
/// If no `mode` is set, the default of `0o666` will be used.
/// The operating system masks out bits with the system's `umask`, to produce

View file

@ -304,7 +304,7 @@ impl PermissionsExt for Permissions {
pub trait OpenOptionsExt {
/// Sets the mode bits that a new file will be created with.
///
/// If a new file is created as part of a `File::open_opts` call then this
/// If a new file is created as part of an `OpenOptions::open` call then this
/// specified `mode` will be used as the permission bits for the new file.
/// If no `mode` is set, the default of `0o666` will be used.
/// The operating system masks out bits with the system's `umask`, to produce