about summary refs log tree commit diff
diff options
context:
space:
mode:
authorqy3u <65523321+qy3u@users.noreply.github.com>2020-06-18 10:13:35 +0800
committerqy3u <qy3u@outlook.com>2020-06-18 17:46:27 +0800
commitd134870bd4bedefaeb07c88a8d24a520bce639cf (patch)
treeb421a678934be6f322d8acf45c2dbe3f9dd5873d
parent2935d294ff862fdf96578d0cbbdc289e8e7ba81c (diff)
downloadrust-d134870bd4bedefaeb07c88a8d24a520bce639cf.tar.gz
rust-d134870bd4bedefaeb07c88a8d24a520bce639cf.zip
Document format correction
-rw-r--r--src/libstd/sys/unix/ext/fs.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libstd/sys/unix/ext/fs.rs b/src/libstd/sys/unix/ext/fs.rs
index 732cd677a18..e4d71493604 100644
--- a/src/libstd/sys/unix/ext/fs.rs
+++ b/src/libstd/sys/unix/ext/fs.rs
@@ -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);