From 33e337e34d69a2e298be8b6c109b601c2986339b Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 4 May 2012 15:01:11 +0000 Subject: libgo: Update to Go 1.0.1 release. From-SVN: r187163 --- libgo/go/path/filepath/path.go | 3 +++ libgo/go/path/path.go | 2 ++ 2 files changed, 5 insertions(+) (limited to 'libgo/go/path') 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 ".". // -- cgit v1.1