summaryrefslogtreecommitdiff
path: root/src/pkg/path/path.go
diff options
context:
space:
mode:
authorOndřej Surý <ondrej@sury.org>2012-05-02 15:44:55 +0200
committerOndřej Surý <ondrej@sury.org>2012-05-02 15:44:55 +0200
commit62e7d56f2c8706e5b88221cedac6769863ddf3b0 (patch)
treea48f46e27c9136335f8ab4db2da790556816554e /src/pkg/path/path.go
parent37370279cdb95edc1ebb298a957147c907907988 (diff)
parent0003ee229fd33ff46cb5f2fe1e35f5c0284debc4 (diff)
downloadgolang-62e7d56f2c8706e5b88221cedac6769863ddf3b0.tar.gz
Merge commit 'upstream/1.0.1' into debian-sid
Diffstat (limited to 'src/pkg/path/path.go')
-rw-r--r--src/pkg/path/path.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pkg/path/path.go b/src/pkg/path/path.go
index 13abed0b0..a7e041568 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 ".".
//