From 3ddeef81532df116ce4e8fd02fec68a3c2063d65 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Fri, 9 Apr 2010 11:36:40 -0700 Subject: rename os.Dir to os.FileInfo R=rsc CC=golang-dev https://golang.org/cl/902042 --- src/pkg/path/path_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/pkg/path/path_test.go') diff --git a/src/pkg/path/path_test.go b/src/pkg/path/path_test.go index cd5978c156..e2458f20c4 100644 --- a/src/pkg/path/path_test.go +++ b/src/pkg/path/path_test.go @@ -224,13 +224,13 @@ func mark(name string) { type TestVisitor struct{} -func (v *TestVisitor) VisitDir(path string, d *os.Dir) bool { - mark(d.Name) +func (v *TestVisitor) VisitDir(path string, f *os.FileInfo) bool { + mark(f.Name) return true } -func (v *TestVisitor) VisitFile(path string, d *os.Dir) { - mark(d.Name) +func (v *TestVisitor) VisitFile(path string, f *os.FileInfo) { + mark(f.Name) } func TestWalk(t *testing.T) { -- cgit v1.3-5-g9baa