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:
Ralf Jung 2020-06-19 08:56:17 +02:00 committed by GitHub
commit f7d833e83d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);