Skip to content

Commit

Permalink
io/fs: make WalkDirFunc parameter name consistent with doc comment
Browse files Browse the repository at this point in the history
The the DirEntry parameter of WalkDirFunc is referred to as `d` in the doc comment.

Change-Id: Ibfcf7908eaa0ef1309898150e8fd71101e7de09b
GitHub-Last-Rev: e858c52
GitHub-Pull-Request: golang#42447
Reviewed-on: https://go-review.googlesource.com/c/go/+/268277
Trust: Emmanuel Odeke <[email protected]>
Reviewed-by: Russ Cox <[email protected]>
  • Loading branch information
fzipp authored and rsc committed Nov 19, 2020
1 parent 59f5fda commit f3ce010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/fs/walk.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f3ce010

Please sign in to comment.