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.
2 parents 75294c6 + faac262 commit fb29c11Copy full SHA for fb29c11
std/src/path.rs
@@ -1246,6 +1246,9 @@ impl PathBuf {
1246
/// and `path` is not empty, the new path is normalized: all references
1247
/// to `.` and `..` are removed.
1248
///
1249
+ /// Consider using [`Path::join`] if you need a new `PathBuf` instead of
1250
+ /// using this function on a cloned `PathBuf`.
1251
+ ///
1252
/// # Examples
1253
1254
/// Pushing a relative path extends the existing path:
0 commit comments