aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/path/filepath
diff options
context:
space:
mode:
authorGustavo Niemeyer <gustavo@niemeyer.net>2011-09-12 16:18:48 -0300
committerGustavo Niemeyer <gustavo@niemeyer.net>2011-09-12 16:18:48 -0300
commit817da6657682a1bd8a50893466e92499bc4e5933 (patch)
tree2b8da7bf56320dd5fb1bc4f6b0a6817ca8d48416 /src/pkg/path/filepath
parent7d43b8428247d101217dbaca8ecd864392640287 (diff)
downloadgo-817da6657682a1bd8a50893466e92499bc4e5933.tar.xz
path/filepath: fix Visitor doc
The path is not in fact relative to the root, but joined to it. R=golang-dev, adg, rsc, gustavo CC=golang-dev https://golang.org/cl/4977059
Diffstat (limited to 'src/pkg/path/filepath')
-rw-r--r--src/pkg/path/filepath/path.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pkg/path/filepath/path.go b/src/pkg/path/filepath/path.go
index 97a89d5191..a1457e8d22 100644
--- a/src/pkg/path/filepath/path.go
+++ b/src/pkg/path/filepath/path.go
@@ -259,8 +259,7 @@ func Abs(path string) (string, os.Error) {
}
// Visitor methods are invoked for corresponding file tree entries
-// visited by Walk. The parameter path is the full path of f relative
-// to root.
+// visited by Walk. The provided path parameter begins with root.
type Visitor interface {
VisitDir(path string, f *os.FileInfo) bool
VisitFile(path string, f *os.FileInfo)