Skip to content

Commit aac77cd

Browse files
cuishuanggopherbot
authored andcommitted
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 <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Joedian Reid <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]>
1 parent 2666ed6 commit aac77cd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

module/module.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,13 @@ package module
9696
// Changes to the semantics in this file require approval from rsc.
9797

9898
import (
99+
"errors"
99100
"fmt"
100101
"path"
101102
"sort"
102103
"strings"
103104
"unicode"
104105
"unicode/utf8"
105-
"errors"
106106

107107
"golang.org/x/mod/semver"
108108
)
@@ -258,7 +258,7 @@ func modPathOK(r rune) bool {
258258
return false
259259
}
260260

261-
// modPathOK reports whether r can appear in a package import path element.
261+
// importPathOK reports whether r can appear in a package import path element.
262262
//
263263
// Import paths are intermediate between module paths and file paths: we allow
264264
// disallow characters that would be confusing or ambiguous as arguments to

zip/zip.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ func (e *UnrecognizedVCSError) Error() string {
619619
return fmt.Sprintf("could not find a recognized version control system at %q", e.RepoRoot)
620620
}
621621

622-
// filterGitIgnored filters out any files that are git ignored in the directory.
622+
// filesInGitRepo filters out any files that are git ignored in the directory.
623623
func filesInGitRepo(dir, rev, subdir string) ([]File, error) {
624624
stderr := bytes.Buffer{}
625625
stdout := bytes.Buffer{}

0 commit comments

Comments
 (0)