aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/path
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2012-05-04 15:01:11 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2012-05-04 15:01:11 +0000
commit33e337e34d69a2e298be8b6c109b601c2986339b (patch)
treedf1037674f2c69011469485414315a50607f9d08 /libgo/go/path
parent1eae36f08cddc7779cd0ed75b359c9a54f67adff (diff)
downloadgcc-33e337e34d69a2e298be8b6c109b601c2986339b.zip
gcc-33e337e34d69a2e298be8b6c109b601c2986339b.tar.gz
gcc-33e337e34d69a2e298be8b6c109b601c2986339b.tar.bz2
libgo: Update to Go 1.0.1 release.
From-SVN: r187163
Diffstat (limited to 'libgo/go/path')
-rw-r--r--libgo/go/path/filepath/path.go3
-rw-r--r--libgo/go/path/path.go2
2 files changed, 5 insertions, 0 deletions
diff --git a/libgo/go/path/filepath/path.go b/libgo/go/path/filepath/path.go
index 1e74872..a4e429b 100644
--- a/libgo/go/path/filepath/path.go
+++ b/libgo/go/path/filepath/path.go
@@ -30,6 +30,9 @@ const (
// that is, replace "/.." by "/" at the beginning of a path,
// assuming Separator is '/'.
//
+// The returned path ends in a slash only if it represents a root directory,
+// such as "/" on Unix or `C:\` on Windows.
+//
// If the result of this process is an empty string, Clean
// returns the string ".".
//
diff --git a/libgo/go/path/path.go b/libgo/go/path/path.go
index 13abed0..a7e0415 100644
--- a/libgo/go/path/path.go
+++ b/libgo/go/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 ".".
//