mirror of
https://github.com/golang/go
synced 2024-11-22 22:30:02 -07: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.
Change-Id: Ibfcf7908eaa0ef1309898150e8fd71101e7de09b
GitHub-Last-Rev: e858c52d81
GitHub-Pull-Request: golang/go#42447
Reviewed-on: https://go-review.googlesource.com/c/go/+/268277
Trust: Emmanuel Odeke <emmanuel@orijtech.com>
Reviewed-by: Russ Cox <rsc@golang.org>
This commit is contained in:
parent
59f5fdac5d
commit
f3ce010b33
@ -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