From f282f6b1f73f48e050028c121f1eb22a8cac9494 Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Thu, 10 Jan 2019 15:30:36 -0500 Subject: [PATCH 1/2] make note of one more normalization that Paths do Fixes #29008 --- src/libstd/path.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libstd/path.rs b/src/libstd/path.rs index 317a7d817db43..d9ca6d3eb718a 100644 --- a/src/libstd/path.rs +++ b/src/libstd/path.rs @@ -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` From e598ea83c88c5dfe203c5f39d391ed01626e4a17 Mon Sep 17 00:00:00 2001 From: Mazdak Farrokhzad Date: Thu, 10 Jan 2019 17:08:42 -0500 Subject: [PATCH 2/2] Update src/libstd/path.rs Co-Authored-By: steveklabnik --- src/libstd/path.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstd/path.rs b/src/libstd/path.rs index d9ca6d3eb718a..5c7bff70a0dcd 100644 --- a/src/libstd/path.rs +++ b/src/libstd/path.rs @@ -2202,7 +2202,7 @@ 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`