Skip to content

Commit

Permalink
make note of one more normalization that Paths do
Browse files Browse the repository at this point in the history
Fixes #29008
  • Loading branch information
steveklabnik committed Jan 10, 2019
1 parent 6ecad33 commit f282f6b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libstd/path.rs
Expand Up @@ -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`
Expand Down

0 comments on commit f282f6b

Please sign in to comment.