Skip to content

Commit 162a20e

Browse files
committed
Add File already exists error doc to hard_link function
If the link path already exists, the error `AlreadyExists` is returned. This commit adds this error to the docs.
1 parent 7bb9888 commit 162a20e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2529,7 +2529,7 @@ pub fn copy<P: AsRef<Path>, Q: AsRef<Path>>(from: P, to: Q) -> io::Result<u64> {
25292529
/// limited to just these cases:
25302530
///
25312531
/// * The `original` path is not a file or doesn't exist.
2532-
///
2532+
/// * The 'link' path already exists.
25332533
/// # Examples
25342534
///
25352535
/// ```no_run

0 commit comments

Comments
 (0)