Add note about absolute paths to Path::join

This commit is contained in:
Valdemar Erk 2023-01-20 11:16:38 +01:00
parent 56ee85274e
commit ec3da87582

View file

@ -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