]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go/internal/modfetch: fix typos in comment
authorguoguangwu <guoguangwug@gmail.com>
Sun, 14 Apr 2024 08:44:53 +0000 (08:44 +0000)
committerGopher Robot <gobot@golang.org>
Sun, 14 Apr 2024 18:50:24 +0000 (18:50 +0000)
Change-Id: I3eb41562bf6478b288d9f41915fd7d027399a6ba
GitHub-Last-Rev: 218b9cb0672f0be18834733c0907a244a8cfcfd9
GitHub-Pull-Request: golang/go#66551
Reviewed-on: https://go-review.googlesource.com/c/go/+/574575
Reviewed-by: Michael Matloob <matloob@golang.org>
Reviewed-by: Sam Thanawalla <samthanawalla@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

src/cmd/go/internal/modfetch/codehost/codehost.go
src/cmd/go/internal/modfetch/codehost/vcs.go
src/cmd/go/internal/modfetch/coderepo.go

index 69a3c57e26697552c7783ff0570f83a48c889060..173ef65b1eb037184f5a86c4683864a61976d7ec 100644 (file)
@@ -49,7 +49,7 @@ type Repo interface {
        // "" for the root or "sub/dir" for a subdirectory (no trailing slash).
        CheckReuse(ctx context.Context, old *Origin, subdir string) error
 
-       // List lists all tags with the given prefix.
+       // Tags lists all tags with the given prefix.
        Tags(ctx context.Context, prefix string) (*Tags, error)
 
        // Stat returns information about the revision rev.
index 5bd100556b59c762c27766cb595c25be8fc3ebbd..651531974e0649f298dd77deccbafa22ba7e60bc 100644 (file)
@@ -419,7 +419,7 @@ func (r *vcsRepo) ReadFile(ctx context.Context, rev, file string, maxSize int64)
 
 func (r *vcsRepo) RecentTag(ctx context.Context, rev, prefix string, allowed func(string) bool) (tag string, err error) {
        // We don't technically need to lock here since we're returning an error
-       // uncondititonally, but doing so anyway will help to avoid baking in
+       // unconditionally, but doing so anyway will help to avoid baking in
        // lock-inversion bugs.
        unlock, err := r.mu.Lock()
        if err != nil {
index 75c34e9fcb538f652f2915c328f3d9132ffa1d28..1d0c98f3658eddef4047627b311889515f62773b 100644 (file)
@@ -515,7 +515,7 @@ func (r *codeRepo) convert(ctx context.Context, info *codehost.RevInfo, statVers
 
        if module.IsPseudoVersion(statVers) {
                // Validate the go.mod location and major version before
-               // we check for an ancestor tagged with the pseude-version base.
+               // we check for an ancestor tagged with the pseudo-version base.
                //
                // We can rule out an invalid subdirectory or major version with only
                // shallow commit information, but checking the pseudo-version base may