Skip to content

Commit

Permalink
Print file mode of PermissionExt in octal in Examples
Browse files Browse the repository at this point in the history
  • Loading branch information
oberien committed May 26, 2019
1 parent f492693 commit 04e45c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libstd/sys/redox/ext/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub trait PermissionsExt {
/// let metadata = f.metadata()?;
/// let permissions = metadata.permissions();
///
/// println!("permissions: {}", permissions.mode());
/// println!("permissions: {:o}", permissions.mode());
/// Ok(())
/// }
/// ```
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/sys/unix/ext/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ pub trait PermissionsExt {
/// let metadata = f.metadata()?;
/// let permissions = metadata.permissions();
///
/// println!("permissions: {}", permissions.mode());
/// println!("permissions: {:o}", permissions.mode());
/// Ok(()) }
/// ```
#[stable(feature = "fs_ext", since = "1.1.0")]
Expand Down

0 comments on commit 04e45c8

Please sign in to comment.