diff --git a/library/std/src/fs.rs b/library/std/src/fs.rs index 8b3e943b4ccd0..b712e2cccda36 100644 --- a/library/std/src/fs.rs +++ b/library/std/src/fs.rs @@ -2666,8 +2666,8 @@ pub fn symlink_metadata>(path: P) -> io::Result { /// and the `MoveFileExW` or `SetFileInformationByHandle` function on Windows. /// /// Because of this, the behavior when both `from` and `to` exist differs. On -/// Unix, if `from` is a directory, `to` must also be an (empty) directory. If -/// `from` is not a directory, `to` must also be not a directory. The behavior +/// Unix, if `from` is a directory, `to` must be an empty directory or non-existent. If +/// `from` is not a directory, `to` must also not be a directory. The behavior /// on Windows is the same on Windows 10 1607 and higher if `FileRenameInfoEx` /// is supported by the filesystem; otherwise, `from` can be anything, but /// `to` must *not* be a directory.