Skip to content

Commit 877e62e

Browse files
authored
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.)
2 parents 351c476 + 03f22fd commit 877e62e

File tree

1 file changed

+1
-1
lines changed
  • src/libstd/sys/windows/ext

1 file changed

+1
-1
lines changed

src/libstd/sys/windows/ext/fs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ pub fn symlink_file<P: AsRef<Path>, Q: AsRef<Path>>(src: P, dst: Q)
477477
/// use std::os::windows::fs;
478478
///
479479
/// # fn foo() -> std::io::Result<()> {
480-
/// fs::symlink_file("a", "b")?;
480+
/// fs::symlink_dir("a", "b")?;
481481
/// # Ok(())
482482
/// # }
483483
/// ```

0 commit comments

Comments
 (0)