Skip to content

Commit 7a565da

Browse files
committed
Add note about absolute paths to Path::join
1 parent 1f08f66 commit 7a565da

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

std/src/path.rs

+2
Original file line numberDiff line numberDiff line change
@@ -2531,6 +2531,8 @@ impl Path {
25312531

25322532
/// Creates an owned [`PathBuf`] with `path` adjoined to `self`.
25332533
///
2534+
/// If `path` is absolute, it replaces the current path.
2535+
///
25342536
/// See [`PathBuf::push`] for more details on what it means to adjoin a path.
25352537
///
25362538
/// # Examples

0 commit comments

Comments
 (0)