aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/path/path_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/path/path_test.go')
-rw-r--r--src/pkg/path/path_test.go8
1 files changed, 4 insertions, 4 deletions
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) {