Skip to content

Commit cbe377b

Browse files
authored
Rollup merge of #57498 - steveklabnik:gh29008, r=alexcrichton
make note of one more normalization that Paths do Fixes #29008
2 parents e0cea0d + e598ea8 commit cbe377b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libstd/path.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2203,6 +2203,8 @@ impl Path {
22032203
/// `a/b` all have `a` and `b` as components, but `./a/b` starts with
22042204
/// an additional [`CurDir`] component.
22052205
///
2206+
/// * A trailing slash is normalized away, `/a/b` and `/a/b/` are equivalent.
2207+
///
22062208
/// Note that no other normalization takes place; in particular, `a/c`
22072209
/// and `a/b/../c` are distinct, to account for the possibility that `b`
22082210
/// is a symbolic link (so its parent isn't `a`).

0 commit comments

Comments
 (0)