Rollup merge of #73464 - qy3u:fs-document-format-correction, r=jonas-schievink
Document format correction Minor amendments to the document. r? @steveklabnik
This commit is contained in:
commit
f7d833e83d
@ -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;
|
||||
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user