Skip to content

Commit

Permalink
Document format correction
Browse files Browse the repository at this point in the history
  • Loading branch information
qy3u committed Jun 18, 2020
1 parent 2935d29 commit d134870
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 d134870

Please sign in to comment.