Skip to content

Commit

Permalink
Rollup merge of #76346 - gillespiecd:nlinks-docs, r=Dylan-DPC
Browse files Browse the repository at this point in the history
Docs: nlink example typo

Small typo fix for the `nlink` function, extra whitespace before the `use` declaration
  • Loading branch information
Dylan-DPC authored Sep 6, 2020
2 parents 346d54d + 5456414 commit d444913
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/std/src/sys/unix/ext/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")?;
Expand Down
2 changes: 1 addition & 1 deletion library/std/src/sys/vxworks/ext/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")?;
Expand Down

0 comments on commit d444913

Please sign in to comment.