Skip to content

Commit

Permalink
Rollup merge of rust-lang#57498 - steveklabnik:gh29008, r=alexcrichton
Browse files Browse the repository at this point in the history
make note of one more normalization that Paths do

Fixes rust-lang#29008
  • Loading branch information
Centril authored Jan 12, 2019
2 parents e0cea0d + e598ea8 commit cbe377b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libstd/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`).
Expand Down

0 comments on commit cbe377b

Please sign in to comment.