Skip to content

Commit 624e7d7

Browse files
committed
[doc] fix the reference to using OpenOptions::open
1 parent 096c99b commit 624e7d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libstd/sys/unix/ext/fs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ impl PermissionsExt for Permissions {
303303
pub trait OpenOptionsExt {
304304
/// Sets the mode bits that a new file will be created with.
305305
///
306-
/// If a new file is created as part of a `File::open_opts` call then this
306+
/// If a new file is created as part of an `OpenOptions::open` call then this
307307
/// specified `mode` will be used as the permission bits for the new file.
308308
/// If no `mode` is set, the default of `0o666` will be used.
309309
/// The operating system masks out bits with the system's `umask`, to produce

src/libstd/sys/vxworks/ext/fs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ impl PermissionsExt for Permissions {
304304
pub trait OpenOptionsExt {
305305
/// Sets the mode bits that a new file will be created with.
306306
///
307-
/// If a new file is created as part of a `File::open_opts` call then this
307+
/// If a new file is created as part of an `OpenOptions::open` call then this
308308
/// specified `mode` will be used as the permission bits for the new file.
309309
/// If no `mode` is set, the default of `0o666` will be used.
310310
/// The operating system masks out bits with the system's `umask`, to produce

0 commit comments

Comments
 (0)