1
0
mirror of https://github.com/golang/go synced 2024-09-24 07:20:14 -06:00

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.
This commit is contained in:
fzipp 2020-11-08 14:43:46 +01:00 committed by GitHub
parent 7307e86afd
commit e858c52d81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {