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
This commit is contained in:
Gustavo Niemeyer 2011-09-12 16:18:48 -03:00
parent 7d43b84282
commit 817da66576
1 changed files with 1 additions and 2 deletions

View 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)