Skip to content

Commit

Permalink
Rollup merge of rust-lang#65905 - cuviper:doc-unix-mode, r=Dylan-DPC
Browse files Browse the repository at this point in the history
[doc] fixes for unix/vxworks `OpenOptionsExt::mode`
  • Loading branch information
pietroalbini authored Nov 5, 2019
2 parents 7976d57 + 624e7d7 commit 0a28415
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/libstd/sys/unix/ext/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,10 @@ 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 systems `umask`, to produce
/// The operating system masks out bits with the system's `umask`, to produce
/// the final permissions.
///
/// # Examples
Expand Down
4 changes: 2 additions & 2 deletions src/libstd/sys/vxworks/ext/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,10 +304,10 @@ 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 systems `umask`, to produce
/// The operating system masks out bits with the system's `umask`, to produce
/// the final permissions.
///
/// # Examples
Expand Down

0 comments on commit 0a28415

Please sign in to comment.