From 096c99b6ebbf0b015e920f75ac84f2b3b71b291f Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Mon, 28 Oct 2019 13:01:02 -0700 Subject: [PATCH 1/2] [doc] add a possessive apostrophe in `OpenOptionsExt::mode` --- src/libstd/sys/unix/ext/fs.rs | 2 +- src/libstd/sys/vxworks/ext/fs.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libstd/sys/unix/ext/fs.rs b/src/libstd/sys/unix/ext/fs.rs index c033c60cbe9e1..2236ecea910d5 100644 --- a/src/libstd/sys/unix/ext/fs.rs +++ b/src/libstd/sys/unix/ext/fs.rs @@ -306,7 +306,7 @@ pub trait OpenOptionsExt { /// If a new file is created as part of a `File::open_opts` 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 systems `umask`, to produce + /// The operating system masks out bits with the system's `umask`, to produce /// the final permissions. /// /// # Examples diff --git a/src/libstd/sys/vxworks/ext/fs.rs b/src/libstd/sys/vxworks/ext/fs.rs index 7ab7f2a1a2645..a0147460a424d 100644 --- a/src/libstd/sys/vxworks/ext/fs.rs +++ b/src/libstd/sys/vxworks/ext/fs.rs @@ -307,7 +307,7 @@ pub trait OpenOptionsExt { /// If a new file is created as part of a `File::open_opts` 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 systems `umask`, to produce + /// The operating system masks out bits with the system's `umask`, to produce /// the final permissions. /// /// # Examples From 624e7d7cd0ed643e5064b9312d78634caff41e1a Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Mon, 28 Oct 2019 13:03:18 -0700 Subject: [PATCH 2/2] [doc] fix the reference to using `OpenOptions::open` --- src/libstd/sys/unix/ext/fs.rs | 2 +- src/libstd/sys/vxworks/ext/fs.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libstd/sys/unix/ext/fs.rs b/src/libstd/sys/unix/ext/fs.rs index 2236ecea910d5..0c52dc5b81b0e 100644 --- a/src/libstd/sys/unix/ext/fs.rs +++ b/src/libstd/sys/unix/ext/fs.rs @@ -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 diff --git a/src/libstd/sys/vxworks/ext/fs.rs b/src/libstd/sys/vxworks/ext/fs.rs index a0147460a424d..4a9cc3bd0693c 100644 --- a/src/libstd/sys/vxworks/ext/fs.rs +++ b/src/libstd/sys/vxworks/ext/fs.rs @@ -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