]> Cypherpunks.ru repositories - gostls13.git/commitdiff
io/fs,path/filepath: fix typo in SkipAll/SkipDir doc
authorRoger Peppe <rogpeppe@gmail.com>
Fri, 5 Jan 2024 12:47:56 +0000 (12:47 +0000)
committerroger peppe <rogpeppe@gmail.com>
Tue, 9 Jan 2024 08:50:19 +0000 (08:50 +0000)
Also make the reference into a doc link.

Change-Id: Ib112307a65b65c8f963abf60aa92cb1942de940c
Reviewed-on: https://go-review.googlesource.com/c/go/+/554295
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

src/io/fs/walk.go
src/path/filepath/path.go

index 48145d4cfce6b6be7e4d892db206607ab3521604..2e8a8db1116fdc7aaf3cc8651904d7d8299dc863 100644 (file)
@@ -9,12 +9,12 @@ import (
        "path"
 )
 
-// SkipDir is used as a return value from WalkDirFuncs to indicate that
+// SkipDir is used as a return value from [WalkDirFunc] to indicate that
 // the directory named in the call is to be skipped. It is not returned
 // as an error by any function.
 var SkipDir = errors.New("skip this directory")
 
-// SkipAll is used as a return value from WalkDirFuncs to indicate that
+// SkipAll is used as a return value from [WalkDirFunc] to indicate that
 // all remaining files and directories are to be skipped. It is not returned
 // as an error by any function.
 var SkipAll = errors.New("skip everything and stop the walk")
index 075cea848ed3fc2a3c3699cb5bbe19d7a09136f3..2af0f5b04cfcee417b194b59466ba77a379e7f50 100644 (file)
@@ -386,12 +386,12 @@ func Rel(basepath, targpath string) (string, error) {
        return targ[t0:], nil
 }
 
-// SkipDir is used as a return value from WalkFuncs to indicate that
+// SkipDir is used as a return value from [WalkFunc] to indicate that
 // the directory named in the call is to be skipped. It is not returned
 // as an error by any function.
 var SkipDir error = fs.SkipDir
 
-// SkipAll is used as a return value from WalkFuncs to indicate that
+// SkipAll is used as a return value from [WalkFunc] to indicate that
 // all remaining files and directories are to be skipped. It is not returned
 // as an error by any function.
 var SkipAll error = fs.SkipAll