diff options
| author | Valdemar Erk <valdemar@erk.dev> | 2023-01-20 11:16:38 +0100 |
|---|---|---|
| committer | Valdemar Erk <valdemar@erk.dev> | 2023-01-20 11:16:38 +0100 |
| commit | ec3da87582a318ddb35d451bdba6d50591ea55ce (patch) | |
| tree | c5da555b8ada0645db17bd3613ca20a623ec8af1 | |
| parent | 56ee85274e5a3a4dda92f3bf73d1664c74ff9c15 (diff) | |
| download | rust-ec3da87582a318ddb35d451bdba6d50591ea55ce.tar.gz rust-ec3da87582a318ddb35d451bdba6d50591ea55ce.zip | |
Add note about absolute paths to Path::join
| -rw-r--r-- | library/std/src/path.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/library/std/src/path.rs b/library/std/src/path.rs index c3593264e52..500a09ad08a 100644 --- a/library/std/src/path.rs +++ b/library/std/src/path.rs @@ -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 |
