]> Cypherpunks repositories - gostls13.git/commitdiff
io/fs: make WalkDirFunc parameter name consistent with doc comment
authorfzipp <fzipp@gmx.de>
Sun, 8 Nov 2020 13:50:30 +0000 (13:50 +0000)
committerRuss Cox <rsc@golang.org>
Thu, 19 Nov 2020 21:51:34 +0000 (21:51 +0000)
The the DirEntry parameter of WalkDirFunc is referred to as `d` in the doc comment.

Change-Id: Ibfcf7908eaa0ef1309898150e8fd71101e7de09b
GitHub-Last-Rev: e858c52d81b93d293621d7e744bdcb7d6cbd412c
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>
src/io/fs/walk.go

index dfc73767bc6ad0173bb466718d8b8176a4d9c7fb..06d0b1769c5515e49f6909656cfd00575d90948b 100644 (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 {