mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 03:07:24 +03:00
docs(std): add error docs for path canonicalize
This commit is contained in:
@@ -3037,6 +3037,14 @@ pub fn symlink_metadata(&self) -> io::Result<fs::Metadata> {
|
||||
///
|
||||
/// 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
|
||||
|
||||
Reference in New Issue
Block a user