about summary refs log tree commit diff
path: root/src/libstd/sys
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2019-10-28 13:03:18 -0700
committerJosh Stone <jistone@redhat.com>2019-10-28 13:03:18 -0700
commit624e7d7cd0ed643e5064b9312d78634caff41e1a (patch)
tree44bdfdd345f5aceef6fca1b6ac7612927e236fa5 /src/libstd/sys
parent096c99b6ebbf0b015e920f75ac84f2b3b71b291f (diff)
downloadrust-624e7d7cd0ed643e5064b9312d78634caff41e1a.tar.gz
rust-624e7d7cd0ed643e5064b9312d78634caff41e1a.zip
[doc] fix the reference to using `OpenOptions::open`
Diffstat (limited to 'src/libstd/sys')
-rw-r--r--src/libstd/sys/unix/ext/fs.rs2
-rw-r--r--src/libstd/sys/vxworks/ext/fs.rs2
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 2236ecea910..0c52dc5b81b 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 a0147460a42..4a9cc3bd069 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