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 d697b4dCopy full SHA for d697b4d
library/std/src/path.rs
@@ -2972,6 +2972,15 @@ impl Path {
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
2986
/// # Examples
0 commit comments