From 817da6657682a1bd8a50893466e92499bc4e5933 Mon Sep 17 00:00:00 2001 From: Gustavo Niemeyer Date: Mon, 12 Sep 2011 16:18:48 -0300 Subject: [PATCH] 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 --- src/pkg/path/filepath/path.go | 3 +-- 1 file changed, 1 insertion(+), 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) -- 2.51.0