Rollup merge of #57498 - steveklabnik:gh29008, r=alexcrichton

make note of one more normalization that Paths do

Fixes #29008
This commit is contained in:
Mazdak Farrokhzad 2019-01-12 10:55:15 +01:00 committed by GitHub
commit cbe377b2f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2203,6 +2203,8 @@ impl Path {
/// `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`
/// is a symbolic link (so its parent isn't `a`).