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:
parent
7307e86afd
commit
e858c52d81
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user