diff options
| author | Rob Pike <r@golang.org> | 2012-04-24 13:17:05 +1000 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2012-04-24 13:17:05 +1000 |
| commit | 5fc2af1f777f0544c2813e67ba92a26b0c8be4f2 (patch) | |
| tree | e8eb4849691c8ed7a218f419f6df513d85ff8e6e /src/pkg/path/path.go | |
| parent | 11820899a58094be1afa22987ce080cb2fb66b86 (diff) | |
| download | go-5fc2af1f777f0544c2813e67ba92a26b0c8be4f2.tar.xz | |
path: document that Clean deletes trailing slashes.
Fixes #3492.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6112044
Diffstat (limited to 'src/pkg/path/path.go')
| -rw-r--r-- | src/pkg/path/path.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pkg/path/path.go b/src/pkg/path/path.go index 13abed0b09..a7e0415689 100644 --- a/src/pkg/path/path.go +++ b/src/pkg/path/path.go @@ -21,6 +21,8 @@ import ( // 4. Eliminate .. elements that begin a rooted path: // that is, replace "/.." by "/" at the beginning of a path. // +// The returned path ends in a slash only if it is the root "/". +// // If the result of this process is an empty string, Clean // returns the string ".". // |
