all: fix a few function names on comments
Change-Id: I71ed5ce987e5746c27b536c4ac4b43c81099b843
Reviewed-on: https://go-review.googlesource.com/c/mod/+/442075
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Joedian Reid <joedian@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
diff --git a/module/module.go b/module/module.go
index c26d1d2..e9dec6e 100644
--- a/module/module.go
+++ b/module/module.go
@@ -96,13 +96,13 @@
// Changes to the semantics in this file require approval from rsc.
import (
+ "errors"
"fmt"
"path"
"sort"
"strings"
"unicode"
"unicode/utf8"
- "errors"
"golang.org/x/mod/semver"
)
@@ -258,7 +258,7 @@
return false
}
-// modPathOK reports whether r can appear in a package import path element.
+// importPathOK reports whether r can appear in a package import path element.
//
// Import paths are intermediate between module paths and file paths: we allow
// disallow characters that would be confusing or ambiguous as arguments to
diff --git a/zip/zip.go b/zip/zip.go
index cdb9f5a..0328705 100644
--- a/zip/zip.go
+++ b/zip/zip.go
@@ -619,7 +619,7 @@
return fmt.Sprintf("could not find a recognized version control system at %q", e.RepoRoot)
}
-// filterGitIgnored filters out any files that are git ignored in the directory.
+// filesInGitRepo filters out any files that are git ignored in the directory.
func filesInGitRepo(dir, rev, subdir string) ([]File, error) {
stderr := bytes.Buffer{}
stdout := bytes.Buffer{}