Skip to content

Commit

Permalink
Add note about absolute paths to Path::join
Browse files Browse the repository at this point in the history
  • Loading branch information
Erk- committed Jan 20, 2023
1 parent 56ee852 commit ec3da87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/std/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2531,6 +2531,8 @@ impl Path {

/// Creates an owned [`PathBuf`] with `path` adjoined to `self`.
///
/// If `path` is absolute, it replaces the current path.
///
/// See [`PathBuf::push`] for more details on what it means to adjoin a path.
///
/// # Examples
Expand Down

0 comments on commit ec3da87

Please sign in to comment.