Skip to content

Commit 1f33a6a

Browse files
authored
Rollup merge of #79399 - pickfire:patch-3, r=JohnTitor
Use detailed and shorter fs error explaination Includes suggestion from `@the8472` #79390 (comment)
2 parents 1010038 + 5495ce0 commit 1f33a6a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/std/src/fs.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1677,9 +1677,9 @@ pub fn rename<P: AsRef<Path>, Q: AsRef<Path>>(from: P, to: Q) -> io::Result<()>
16771677
/// This function will return an error in the following situations, but is not
16781678
/// limited to just these cases:
16791679
///
1680-
/// * The `from` path is not a file.
1681-
/// * The `from` file does not exist.
1682-
/// * The current process does not have the permission rights to access
1680+
/// * `from` is neither a regular file nor a symlink to a regular file.
1681+
/// * `from` does not exist.
1682+
/// * The current process does not have the permission rights to read
16831683
/// `from` or write `to`.
16841684
///
16851685
/// # Examples

0 commit comments

Comments
 (0)