Skip to content

Commit

Permalink
Rollup merge of rust-lang#43222 - RalfJung:symlink, r=sfackler
Browse files Browse the repository at this point in the history
windows::fs::symlink_dir: fix example to actually use symlink_dir

I don't have a windows machine, so I couldn't test if this doctest still works -- but it looks trivial enough. (I know, famous last words.)
  • Loading branch information
frewsxcv committed Jul 15, 2017
2 parents 351c476 + 03f22fd commit 877e62e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/sys/windows/ext/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ pub fn symlink_file<P: AsRef<Path>, Q: AsRef<Path>>(src: P, dst: Q)
/// use std::os::windows::fs;
///
/// # fn foo() -> std::io::Result<()> {
/// fs::symlink_file("a", "b")?;
/// fs::symlink_dir("a", "b")?;
/// # Ok(())
/// # }
/// ```
Expand Down

0 comments on commit 877e62e

Please sign in to comment.