]> git.lizzy.rs Git - rust.git/commitdiff
windows::fs::symlink_dir: fix example to actually use symlink_dir
authorRalf Jung <post@ralfj.de>
Thu, 13 Jul 2017 18:14:35 +0000 (11:14 -0700)
committerRalf Jung <post@ralfj.de>
Thu, 13 Jul 2017 18:14:35 +0000 (11:14 -0700)
src/libstd/sys/windows/ext/fs.rs

index 67348a00494174656a9fef8fdaca18f587febc6b..a1c63e3358840bfbc7b52a2fd2cd5a73ed5906e3 100644 (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(())
 /// # }
 /// ```