Skip to content

Commit f282f6b

Browse files
committed
make note of one more normalization that Paths do
Fixes rust-lang#29008
1 parent 6ecad33 commit f282f6b

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
@@ -2202,6 +2202,8 @@ impl Path {
22022202
/// beginning of the path. For example, `a/./b`, `a/b/`, `a/b/.` and
22032203
/// `a/b` all have `a` and `b` as components, but `./a/b` starts with
22042204
/// an additional [`CurDir`] component.
2205+
///
2206+
/// * A trailing slash is normalized away, `/a/b` and `/a/b/` are equivalent.
22052207
///
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`

0 commit comments

Comments
 (0)