about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChris Gillespie <6572184+gillespiecd@users.noreply.github.com>2020-09-04 13:55:50 -0700
committerChris Gillespie <6572184+gillespiecd@users.noreply.github.com>2020-09-04 14:41:27 -0700
commit5456414d91c2ca550cf9c12f3dda7283f7f50f74 (patch)
tree53d7a279f401017bd861971f077efb22f3bf4e16
parentd2454643e137bde519786ee9e650c455d7ad6f34 (diff)
downloadrust-5456414d91c2ca550cf9c12f3dda7283f7f50f74.tar.gz
rust-5456414d91c2ca550cf9c12f3dda7283f7f50f74.zip
Fix nlink example typo
-rw-r--r--library/std/src/sys/unix/ext/fs.rs2
-rw-r--r--library/std/src/sys/vxworks/ext/fs.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/sys/unix/ext/fs.rs b/library/std/src/sys/unix/ext/fs.rs
index e48e950928a..487ac266ee9 100644
--- a/library/std/src/sys/unix/ext/fs.rs
+++ b/library/std/src/sys/unix/ext/fs.rs
@@ -428,7 +428,7 @@ pub trait MetadataExt {
     /// ```no_run
     /// use std::fs;
     /// use std::os::unix::fs::MetadataExt;
-    ///  use std::io;
+    /// use std::io;
     ///
     /// fn main() -> io::Result<()> {
     ///     let meta = fs::metadata("some_file")?;
diff --git a/library/std/src/sys/vxworks/ext/fs.rs b/library/std/src/sys/vxworks/ext/fs.rs
index 4ff86daf0dd..9b4c64bdb6d 100644
--- a/library/std/src/sys/vxworks/ext/fs.rs
+++ b/library/std/src/sys/vxworks/ext/fs.rs
@@ -427,7 +427,7 @@ pub trait MetadataExt {
     /// ```no_run
     /// use std::fs;
     /// use std::os::unix::fs::MetadataExt;
-    ///  use std::io;
+    /// use std::io;
     ///
     /// fn main() -> io::Result<()> {
     ///     let meta = fs::metadata("some_file")?;