Skip to content

Commit d8f6804

Browse files
authored
Rollup merge of #73464 - qy3u:fs-document-format-correction, r=jonas-schievink
Document format correction Minor amendments to the document. r? @steveklabnik
2 parents 8fa2f09 + d134870 commit d8f6804

File tree

1 file changed

+4
-2
lines changed
  • src/libstd/sys/unix/ext

1 file changed

+4
-2
lines changed

src/libstd/sys/unix/ext/fs.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,8 @@ pub trait PermissionsExt {
242242
/// let permissions = metadata.permissions();
243243
///
244244
/// println!("permissions: {:o}", permissions.mode());
245-
/// Ok(()) }
245+
/// Ok(())
246+
/// }
246247
/// ```
247248
#[stable(feature = "fs_ext", since = "1.1.0")]
248249
fn mode(&self) -> u32;
@@ -262,7 +263,8 @@ pub trait PermissionsExt {
262263
///
263264
/// permissions.set_mode(0o644); // Read/write for owner and read for others.
264265
/// assert_eq!(permissions.mode(), 0o644);
265-
/// Ok(()) }
266+
/// Ok(())
267+
/// }
266268
/// ```
267269
#[stable(feature = "fs_ext", since = "1.1.0")]
268270
fn set_mode(&mut self, mode: u32);

0 commit comments

Comments
 (0)