Skip to content

Commit

Permalink
Use detailed and shorter fs error explaination
Browse files Browse the repository at this point in the history
Includes suggestion from the8472 #79390 (comment)

More detail error explanation in fs doc
  • Loading branch information
pickfire committed Mar 27, 2021
1 parent 1c389ff commit 5495ce0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/std/src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1676,9 +1676,9 @@ pub fn rename<P: AsRef<Path>, Q: AsRef<Path>>(from: P, to: Q) -> io::Result<()>
/// This function will return an error in the following situations, but is not
/// limited to just these cases:
///
/// * The `from` path is not a file.
/// * The `from` file does not exist.
/// * The current process does not have the permission rights to access
/// * `from` is neither a regular file nor a symlink to a regular file.
/// * `from` does not exist.
/// * The current process does not have the permission rights to read
/// `from` or write `to`.
///
/// # Examples
Expand Down

0 comments on commit 5495ce0

Please sign in to comment.