Skip to content

Commit

Permalink
Rollup merge of #73464 - qy3u:fs-document-format-correction, r=jonas-…
Browse files Browse the repository at this point in the history
…schievink

Document format correction

Minor amendments to the document.

r? @steveklabnik
  • Loading branch information
Manishearth authored Jun 18, 2020
2 parents 8fa2f09 + d134870 commit d8f6804
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/libstd/sys/unix/ext/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,8 @@ pub trait PermissionsExt {
/// let permissions = metadata.permissions();
///
/// println!("permissions: {:o}", permissions.mode());
/// Ok(()) }
/// Ok(())
/// }
/// ```
#[stable(feature = "fs_ext", since = "1.1.0")]
fn mode(&self) -> u32;
Expand All @@ -262,7 +263,8 @@ pub trait PermissionsExt {
///
/// permissions.set_mode(0o644); // Read/write for owner and read for others.
/// assert_eq!(permissions.mode(), 0o644);
/// Ok(()) }
/// Ok(())
/// }
/// ```
#[stable(feature = "fs_ext", since = "1.1.0")]
fn set_mode(&mut self, mode: u32);
Expand Down

0 comments on commit d8f6804

Please sign in to comment.