Fix symlink doc (#4514)

This bit me.
This commit is contained in:
Zanie Blue 2024-06-25 09:27:03 -04:00 committed by GitHub
parent e25cbee4d2
commit 7fe7d8b34e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -45,7 +45,7 @@ pub async fn read_to_string_transcode(path: impl AsRef<Path>) -> std::io::Result
Ok(buf)
}
/// Create a symlink from `src` to `dst`, replacing any existing symlink.
/// Create a symlink at `dst` pointing to `src`, replacing any existing symlink.
///
/// On Windows, this uses the `junction` crate to create a junction point.
#[cfg(windows)]
@ -68,7 +68,7 @@ pub fn replace_symlink(src: impl AsRef<Path>, dst: impl AsRef<Path>) -> std::io:
)
}
/// Create a symlink from `src` to `dst`, replacing any existing symlink if necessary.
/// Create a symlink at `dst` pointing to `src`, replacing any existing symlink if necessary.
#[cfg(unix)]
pub fn replace_symlink(src: impl AsRef<Path>, dst: impl AsRef<Path>) -> std::io::Result<()> {
// Attempt to create the symlink directly.