Rollup merge of #43222 - RalfJung:symlink, r=sfackler

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.)
This commit is contained in:
Corey Farwell 2017-07-14 20:57:17 -07:00 committed by GitHub
commit 877e62e471

View File

@ -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(())
/// # }
/// ```