1
Fork 0

Mention that fs::canonicalize makes paths absolute.

This commit is contained in:
Tim Allen 2018-05-10 18:05:29 +10:00
parent 8ff4b42064
commit 9d7eda96ee
2 changed files with 4 additions and 4 deletions

View file

@ -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
///

View file

@ -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`].
///