Skip to content

Commit 3f5c012

Browse files
authored
Rollup merge of #96586 - ear7h:master, r=joshtriplett
Add aliases for std::fs::canonicalize The aliases are `realpath` and `GetFinalPathNameByHandle` which are explicitly mentioned in `canonicalize`'s documentation.
2 parents 077d0b2 + 6fa1492 commit 3f5c012

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

std/src/fs.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1930,6 +1930,8 @@ pub fn read_link<P: AsRef<Path>>(path: P) -> io::Result<PathBuf> {
19301930
/// Ok(())
19311931
/// }
19321932
/// ```
1933+
#[doc(alias = "realpath")]
1934+
#[doc(alias = "GetFinalPathNameByHandle")]
19331935
#[stable(feature = "fs_canonicalize", since = "1.5.0")]
19341936
pub fn canonicalize<P: AsRef<Path>>(path: P) -> io::Result<PathBuf> {
19351937
fs_imp::canonicalize(path.as_ref())

0 commit comments

Comments
 (0)