From e858c52d81b93d293621d7e744bdcb7d6cbd412c Mon Sep 17 00:00:00 2001 From: fzipp Date: Sun, 8 Nov 2020 14:43:46 +0100 Subject: [PATCH] io/fs: make WalkDirFunc parameter name consistent with doc comment The the DirEntry parameter of WalkDirFunc is referred to as `d` in the doc comment. --- src/io/fs/walk.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io/fs/walk.go b/src/io/fs/walk.go index e50c1bb15c..c09823be20 100644 --- a/src/io/fs/walk.go +++ b/src/io/fs/walk.go @@ -64,7 +64,7 @@ var SkipDir = errors.New("skip this directory") // - If a directory read fails, the function is called a second time // for that directory to report the error. // -type WalkDirFunc func(path string, entry DirEntry, err error) error +type WalkDirFunc func(path string, d DirEntry, err error) error // walkDir recursively descends path, calling walkDirFn. func walkDir(fsys FS, name string, d DirEntry, walkDirFn WalkDirFunc) error {