]> Cypherpunks repositories - gostls13.git/commitdiff
path/filepath: fix Visitor doc
authorGustavo Niemeyer <gustavo@niemeyer.net>
Mon, 12 Sep 2011 19:18:48 +0000 (16:18 -0300)
committerGustavo Niemeyer <gustavo@niemeyer.net>
Mon, 12 Sep 2011 19:18:48 +0000 (16:18 -0300)
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

src/pkg/path/filepath/path.go

index 97a89d519146e2096f107ac7caa73aa62a341710..a1457e8d2237913c5d4c0f34660c39f6202920bd 100644 (file)
@@ -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)