We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 840245e commit f0de3ccCopy full SHA for f0de3cc
1 file changed
library/std/src/path.rs
@@ -2971,6 +2971,15 @@ impl Path {
2971
/// Creates an owned [`PathBuf`] with `path` adjoined to `self`.
2972
///
2973
/// If `path` is absolute, it replaces the current path.
2974
+ ///
2975
+ /// On Windows:
2976
2977
+ /// * if `path` has a root but no prefix (e.g., `\windows`), it
2978
+ /// replaces and returns everything except for the prefix (if any) of `self`.
2979
+ /// * if `path` has a prefix but no root, `self` is ignored and `path` is returned.
2980
+ /// * if `self` has a verbatim prefix (e.g. `\\?\C:\windows`)
2981
+ /// and `path` is not empty, the new path is normalized: all references
2982
+ /// to `.` and `..` are removed.
2983
2984
/// See [`PathBuf::push`] for more details on what it means to adjoin a path.
2985
0 commit comments