about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-01-12 10:55:15 +0100
committerGitHub <noreply@github.com>2019-01-12 10:55:15 +0100
commitcbe377b2f5e709b35cee2bfb683b4f6a508a750f (patch)
tree1943bd89fca4d3da16e914c0e96ce1afbb9d2f43 /src/libstd
parente0cea0db5da9d3671e9c68ebb264d90bd69b2c28 (diff)
parente598ea83c88c5dfe203c5f39d391ed01626e4a17 (diff)
downloadrust-cbe377b2f5e709b35cee2bfb683b4f6a508a750f.tar.gz
rust-cbe377b2f5e709b35cee2bfb683b4f6a508a750f.zip
Rollup merge of #57498 - steveklabnik:gh29008, r=alexcrichton
make note of one more normalization that Paths do

Fixes #29008
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/path.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstd/path.rs b/src/libstd/path.rs
index 317a7d817db..5c7bff70a0d 100644
--- a/src/libstd/path.rs
+++ b/src/libstd/path.rs
@@ -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`).