]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go/internal/modindex: correct isDir doc comment
authorIan Lance Taylor <iant@golang.org>
Thu, 30 Jan 2025 21:36:00 +0000 (13:36 -0800)
committerGopher Robot <gobot@golang.org>
Mon, 3 Feb 2025 16:20:02 +0000 (08:20 -0800)
Change-Id: Ic7e272b14a24f78b9ef3ca8e0706775bc9f2a3f2
Reviewed-on: https://go-review.googlesource.com/c/go/+/645715
Reviewed-by: Michael Matloob <matloob@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>

src/cmd/go/internal/modindex/build.go

index b4dacb0f523a8d4516a5c4419c07a1d4b7f91dc6..542d6fbbbba390d6afd4720763dc89b11977f5ad 100644 (file)
@@ -133,7 +133,7 @@ func (ctxt *Context) isAbsPath(path string) bool {
        return filepath.IsAbs(path)
 }
 
-// isDir calls ctxt.IsDir (if not nil) or else uses fsys.Stat.
+// isDir reports whether path is a directory.
 func isDir(path string) bool {
        fi, err := fsys.Stat(path)
        return err == nil && fi.IsDir()