docs(std): add error docs for path canonicalize
This commit is contained in:
parent
f13ef0d75d
commit
4b5d0e02ca
1 changed files with 8 additions and 0 deletions
|
|
@ -3037,6 +3037,14 @@ impl Path {
|
|||
///
|
||||
/// This is an alias to [`fs::canonicalize`].
|
||||
///
|
||||
/// # Errors
|
||||
///
|
||||
/// This method will return an error in the following situations, but is not
|
||||
/// limited to just these cases:
|
||||
///
|
||||
/// * `path` does not exist.
|
||||
/// * A non-final component in path is not a directory.
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// ```no_run
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue