Skip to content

Commit 0a28415

Browse files
authored
Rollup merge of rust-lang#65905 - cuviper:doc-unix-mode, r=Dylan-DPC
[doc] fixes for unix/vxworks `OpenOptionsExt::mode`
2 parents 7976d57 + 624e7d7 commit 0a28415

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -303,10 +303,10 @@ 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.
309-
/// The operating system masks out bits with the systems `umask`, to produce
309+
/// The operating system masks out bits with the system's `umask`, to produce
310310
/// the final permissions.
311311
///
312312
/// # Examples

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -304,10 +304,10 @@ 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.
310-
/// The operating system masks out bits with the systems `umask`, to produce
310+
/// The operating system masks out bits with the system's `umask`, to produce
311311
/// the final permissions.
312312
///
313313
/// # Examples

0 commit comments

Comments
 (0)