From 7fe7d8b34eed4e9eabe2b29331f4fc4eef3b9d22 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Tue, 25 Jun 2024 09:27:03 -0400 Subject: [PATCH] Fix symlink doc (#4514) This bit me. --- crates/uv-fs/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/uv-fs/src/lib.rs b/crates/uv-fs/src/lib.rs index 01a1615da..1f4dd1e60 100644 --- a/crates/uv-fs/src/lib.rs +++ b/crates/uv-fs/src/lib.rs @@ -45,7 +45,7 @@ pub async fn read_to_string_transcode(path: impl AsRef) -> 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, dst: impl AsRef) -> 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, dst: impl AsRef) -> std::io::Result<()> { // Attempt to create the symlink directly.