Mention that fs::canonicalize makes paths absolute.
This commit is contained in:
parent
8ff4b42064
commit
9d7eda96ee
2 changed files with 4 additions and 4 deletions
|
@ -1699,8 +1699,8 @@ pub fn read_link<P: AsRef<Path>>(path: P) -> io::Result<PathBuf> {
|
|||
fs_imp::readlink(path.as_ref())
|
||||
}
|
||||
|
||||
/// Returns the canonical form of a path with all intermediate components
|
||||
/// normalized and symbolic links resolved.
|
||||
/// Returns the canonical, absolute form of a path with all intermediate
|
||||
/// components normalized and symbolic links resolved.
|
||||
///
|
||||
/// # Platform-specific behavior
|
||||
///
|
||||
|
|
|
@ -2284,8 +2284,8 @@ impl Path {
|
|||
fs::symlink_metadata(self)
|
||||
}
|
||||
|
||||
/// Returns the canonical form of the path with all intermediate components
|
||||
/// normalized and symbolic links resolved.
|
||||
/// Returns the canonical, absolute form of the path with all intermediate
|
||||
/// components normalized and symbolic links resolved.
|
||||
///
|
||||
/// This is an alias to [`fs::canonicalize`].
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue