]> Cypherpunks repositories - gostls13.git/commitdiff
cmd, go: fix some typos
authorwangshuo <wangshuo@kylinos.cn>
Tue, 17 Dec 2024 12:50:44 +0000 (12:50 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 17 Dec 2024 19:19:09 +0000 (11:19 -0800)
Change-Id: I0fd54ae5294eb4ef30cdef05adb8825f69077b14
GitHub-Last-Rev: ccfa48cbe4525dc2bd60e9ac7e2c150e480ba13f
GitHub-Pull-Request: golang/go#70823
Reviewed-on: https://go-review.googlesource.com/c/go/+/635915
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

src/cmd/compile/internal/types2/README.md
src/cmd/compile/internal/types2/signature.go
src/cmd/go/testdata/script/build_version_stamping_git.txt
src/cmd/vet/vet_test.go
src/go/types/signature.go

index 3d70cdbcf484ddf8ead23259c02f3b5c10de7db5..73253b49207aac1344004570afdee13e579d2251 100644 (file)
@@ -56,7 +56,7 @@ The tests are in:
 Tests are .go files annotated with `/* ERROR "msg" */` or `/* ERRORx "msg" */`
 comments (or the respective line comment form).
 For each such error comment, typechecking the respective file is expected to
-report an error at the position of the syntactic token _immediately preceeding_
+report an error at the position of the syntactic token _immediately preceding_
 the comment.
 For `ERROR`, the `"msg"` string must be a substring of the error message
 reported by the typechecker;
index d3169630eaa0bdf740d88489ee7d4219a1ce549e..de4f1eaa207fdcb3b8f0ef51db2b2348885f3003 100644 (file)
@@ -174,7 +174,7 @@ func (check *Checker) collectRecv(rparam *syntax.Field, scopePos syntax.Pos) (*V
        } else {
                // If there are type parameters, rbase must denote a generic base type.
                // Important: rbase must be resolved before declaring any receiver type
-               // parameters (wich may have the same name, see below).
+               // parameters (which may have the same name, see below).
                var baseType *Named // nil if not valid
                var cause string
                if t := check.genericType(rbase, &cause); isValid(t) {
index ed07e00c7b192ad79e481d018442284ed94218bb..db804b3847996065f848b356a34fc6b0304d65c8 100644 (file)
@@ -51,7 +51,7 @@ go version -m example$GOEXE
 stdout '\s+mod\s+example\s+v1.0.1\s+'
 rm example$GOEXE
 
-# Use tag+dirty when there are uncomitted changes present.
+# Use tag+dirty when there are uncommitted changes present.
 cp $WORK/copy/README $WORK/repo/README
 go build
 go version -m example$GOEXE
@@ -82,7 +82,7 @@ go version -m example$GOEXE
 stdout '\s+mod\s+example\s+v1.0.3-0.20220719150702-deaeab06f7fe\s+'
 rm example$GOEXE
 
-# Use pseudo+dirty when uncomitted changes are present.
+# Use pseudo+dirty when uncommitted changes are present.
 mv README2 README3
 go build
 go version -m example$GOEXE
index f1450dcbd28d2c1df40afbba99bec883a88ed13c..3860895a0ae96c341d811f7fde4e37b0d36a8b77 100644 (file)
@@ -108,7 +108,7 @@ func TestVet(t *testing.T) {
        // is a no-op for files whose version >= go1.22, so we use a
        // go.mod file in the rangeloop directory to "downgrade".
        //
-       // TOOD(adonovan): delete when go1.21 goes away.
+       // TODO(adonovan): delete when go1.21 goes away.
        t.Run("loopclosure", func(t *testing.T) {
                cmd := testenv.Command(t, testenv.GoToolPath(t), "vet", "-vettool="+vetPath(t), ".")
                cmd.Env = append(os.Environ(), "GOWORK=off")
index 681eb85fd70b8f387b72a9d2661876d7c21ff9e2..ff405318ee4ca8cd92ff1d68d9375f65f3111b6a 100644 (file)
@@ -195,7 +195,7 @@ func (check *Checker) collectRecv(rparam *ast.Field, scopePos token.Pos) (*Var,
        } else {
                // If there are type parameters, rbase must denote a generic base type.
                // Important: rbase must be resolved before declaring any receiver type
-               // parameters (wich may have the same name, see below).
+               // parameters (which may have the same name, see below).
                var baseType *Named // nil if not valid
                var cause string
                if t := check.genericType(rbase, &cause); isValid(t) {