1
Fork 0

make note of one more normalization that Paths do

Fixes #29008
This commit is contained in:
Steve Klabnik 2019-01-10 15:30:36 -05:00
parent 6ecad33838
commit f282f6b1f7

View file

@ -2202,6 +2202,8 @@ impl Path {
/// beginning of the path. For example, `a/./b`, `a/b/`, `a/b/.` and
/// `a/b` all have `a` and `b` as components, but `./a/b` starts with
/// an additional [`CurDir`] component.
///
/// * A trailing slash is normalized away, `/a/b` and `/a/b/` are equivalent.
///
/// Note that no other normalization takes place; in particular, `a/c`
/// and `a/b/../c` are distinct, to account for the possibility that `b`