]> Cypherpunks.ru repositories - gostls13.git/commitdiff
all: fix typos
authorcuishuang <imcusg@gmail.com>
Mon, 28 Feb 2022 12:17:25 +0000 (12:17 +0000)
committerRobert Griesemer <gri@golang.org>
Mon, 28 Feb 2022 21:52:59 +0000 (21:52 +0000)
Change-Id: I93ff3d33a5db130dd57a9545456f2961fc3f668b
GitHub-Last-Rev: f95fafc04937a99f82cb992aabb7bac602033d8e
GitHub-Pull-Request: golang/go#51394
Reviewed-on: https://go-review.googlesource.com/c/go/+/388314
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
doc/go1.18.html
misc/cgo/testsanitizers/asan_test.go
src/cmd/compile/internal/types/fmt.go
src/cmd/compile/internal/types2/validtype.go
src/go/types/validtype.go

index 21089ef4b3df17fae50036e47e084d4dffa362e6..b320579c37408f94b014f738266dd92d5507ad3c 100644 (file)
@@ -137,7 +137,7 @@ Do not send CLs removing the interior tags from such phrases.
     </li>
     <li><!-- https://golang.org/issue/51183 -->
       The Go compiler currently only supports calling a method <code>m</code> on a value
-      <code>x</code> of type parameter type <code>P</code> if <code>m</code> is explictly
+      <code>x</code> of type parameter type <code>P</code> if <code>m</code> is explicitly
       declared by <code>P</code>'s constraint interface.
       Similarly, method values <code>x.m</code> and method expressions
       <code>P.m</code> also are only supported if <code>m</code> is explicitly
index 1b70bce3d1183f8db7de1b9bddbf90385b22f5e8..22dcf23c3ba76e31020b68cf21f2ed406f034e36 100644 (file)
@@ -63,7 +63,7 @@ func TestASAN(t *testing.T) {
                                        // sanitizer library needs a
                                        // symbolizer program and can't find it.
                                        const noSymbolizer = "external symbolizer"
-                                       // Check if -asan option can correctly print where the error occured.
+                                       // Check if -asan option can correctly print where the error occurred.
                                        if tc.errorLocation != "" &&
                                                !strings.Contains(out, tc.errorLocation) &&
                                                !strings.Contains(out, noSymbolizer) &&
index e1b395559a0c192253f282ee09b0573913388307..09814ac46dd6e4415b9d1126d8f4e42a7d699024 100644 (file)
@@ -657,7 +657,7 @@ func fldconv(b *bytes.Buffer, f *Field, verb rune, mode fmtMode, visited map[*Ty
 
                                // Compute tsym, the symbol that would normally be used as
                                // the field name when embedding f.Type.
-                               // TODO(mdempsky): Check for other occurences of this logic
+                               // TODO(mdempsky): Check for other occurrences of this logic
                                // and deduplicate.
                                typ := f.Type
                                if typ.IsPtr() {
index c508eadc7ceefa7b9fcb1f049397573ccb8b7609..f365ad1e27e9ab926b5b78e1d3ec07432862851b 100644 (file)
@@ -79,7 +79,7 @@ func (check *Checker) validType0(typ Type, env *tparamEnv, path []Object) typeIn
                        // would have reported a type cycle and couldn't have been
                        // imported in the first place.
                        assert(t.obj.pkg == check.pkg)
-                       t.underlying = Typ[Invalid] // t is in the current package (no race possibilty)
+                       t.underlying = Typ[Invalid] // t is in the current package (no race possibility)
                        // Find the starting point of the cycle and report it.
                        for i, tn := range path {
                                if tn == t.obj {
index c4ec2f2e0ae8051a5108be391364191e844b3d78..7d7029bce268c7d05db4c54940ff3f058395ecab 100644 (file)
@@ -79,7 +79,7 @@ func (check *Checker) validType0(typ Type, env *tparamEnv, path []Object) typeIn
                        // would have reported a type cycle and couldn't have been
                        // imported in the first place.
                        assert(t.obj.pkg == check.pkg)
-                       t.underlying = Typ[Invalid] // t is in the current package (no race possibilty)
+                       t.underlying = Typ[Invalid] // t is in the current package (no race possibility)
                        // Find the starting point of the cycle and report it.
                        for i, tn := range path {
                                if tn == t.obj {