]> Cypherpunks.ru repositories - gostls13.git/commitdiff
all: fix typos
authorJes Cok <xigua67damn@gmail.com>
Fri, 23 Jun 2023 07:47:48 +0000 (07:47 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 18 Jul 2023 19:55:29 +0000 (19:55 +0000)
Change-Id: I510b0a4bf3472d937393800dd57472c30beef329
GitHub-Last-Rev: 8d289b73a37bd86080936423d981d21e152aaa33
GitHub-Pull-Request: golang/go#60960
Reviewed-on: https://go-review.googlesource.com/c/go/+/505398
Auto-Submit: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Robert Findley <rfindley@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
16 files changed:
src/cmd/cgo/internal/test/issue9400_linux.go
src/cmd/compile/internal/types2/predicates.go
src/cmd/compile/internal/types2/unify.go
src/cmd/go/internal/modget/get.go
src/cmd/internal/obj/arm64/doc.go
src/cmd/internal/obj/objfile.go
src/cmd/internal/obj/x86/asm6.go
src/encoding/gob/encoder_test.go
src/go/types/predicates.go
src/go/types/unify.go
src/regexp/testdata/nullsubexpr.dat
src/runtime/cgocall.go
src/runtime/coverage/emit.go
src/runtime/mgcmark.go
src/runtime/race/testdata/chan_test.go
test/codegen/README

index 1511e258767f4d805982af919f592c171e3a9040..41b9ab9dc7eebef179eb67aea6f8b0c4a30de459 100644 (file)
@@ -48,7 +48,7 @@ func test9400(t *testing.T) {
        }
 
        // Disable GC for the duration of the test.
-       // This avoids a potential GC deadlock when spinning in uninterruptable ASM below #49695.
+       // This avoids a potential GC deadlock when spinning in uninterruptible ASM below #49695.
        defer debug.SetGCPercent(debug.SetGCPercent(-1))
        // SetGCPercent waits until the mark phase is over, but the runtime
        // also preempts at the start of the sweep phase, so make sure that's
index 13a3bf8af5b5b43fd42f83abbc43a2ea3134c711..075bd97d0f77f1209172ace23dad808a1cf81c23 100644 (file)
@@ -449,7 +449,7 @@ func (c *comparer) identical(x, y Type, p *ifacePair) bool {
                                        return false
                                }
                        }
-                       return indenticalOrigin(x, y)
+                       return identicalOrigin(x, y)
                }
 
        case *TypeParam:
@@ -466,7 +466,7 @@ func (c *comparer) identical(x, y Type, p *ifacePair) bool {
 }
 
 // identicalOrigin reports whether x and y originated in the same declaration.
-func indenticalOrigin(x, y *Named) bool {
+func identicalOrigin(x, y *Named) bool {
        // TODO(gri) is this correct?
        return x.Origin().obj == y.Origin().obj
 }
index 94830e94f78ecb8cfc9e02c30e0afa4da9f5a8e6..dfb5512753d7894e5cef31ef55a60f34960a1007 100644 (file)
@@ -724,7 +724,7 @@ func (u *unifier) nify(x, y Type, mode unifyMode, p *ifacePair) (result bool) {
                                        return false
                                }
                        }
-                       return indenticalOrigin(x, y)
+                       return identicalOrigin(x, y)
                }
 
        case *TypeParam:
index 37befa39c9d79557b346ecd4493f83c6f14d9d96..3615130a99b387f1671c1cc67e0410d54b3a6658 100644 (file)
@@ -344,7 +344,7 @@ func runGet(ctx context.Context, cmd *base.Command, args []string) {
                        // The result of any version query for a given module — even "upgrade" or
                        // "patch" — is always relative to the build list at the start of
                        // the 'go get' command, not an intermediate state, and is therefore
-                       // deterministic and therefore cachable, and the constraints on the
+                       // deterministic and therefore cacheable, and the constraints on the
                        // selected version of each module can only narrow as we iterate.
                        //
                        // "all" is functionally very similar to a wildcard pattern. The set of
index 4606e98aa99d08770e580c33f54baca7eedcdaf5..7c65ab76da1d172bc41733d3ee45e628ee174d0f 100644 (file)
@@ -96,7 +96,7 @@ Examples:
 7. Move large constants to vector registers.
 
 Go asm uses VMOVQ/VMOVD/VMOVS to move 128-bit, 64-bit and 32-bit constants into vector registers, respectively.
-And for a 128-bit interger, it take two 64-bit operands, for the low and high parts separately.
+And for a 128-bit integer, it take two 64-bit operands, for the low and high parts separately.
 
 Examples:
 
index aa9985556543ac203dba54bda655140e55c7a416..0113eddbfd92fe3c4f0da698dd03a25d2635d408 100644 (file)
@@ -423,7 +423,7 @@ func (w *writer) Hash(s *LSym) {
 // contentHashSection returns a mnemonic for s's section.
 // The goal is to prevent content-addressability from moving symbols between sections.
 // contentHashSection only distinguishes between sets of sections for which this matters.
-// Allowing flexibility increases the effectiveness of content-addressibility.
+// Allowing flexibility increases the effectiveness of content-addressability.
 // But in some cases, such as doing addressing based on a base symbol,
 // we need to ensure that a symbol is always in a particular section.
 // Some of these conditions are duplicated in cmd/link/internal/ld.(*Link).symtab.
index 718da6a8a2caf61ec4da653585f0f22fdbdcc46a..782b6d4aff1051cc16622488113a8f95ed0b6ff4 100644 (file)
@@ -1978,7 +1978,7 @@ func fusedJump(p *obj.Prog) (bool, uint8) {
 type padJumpsCtx int32
 
 func makePjcCtx(ctxt *obj.Link) padJumpsCtx {
-       // Disable jump padding on 32 bit builds by settting
+       // Disable jump padding on 32 bit builds by setting
        // padJumps to 0.
        if ctxt.Arch.Family == sys.I386 {
                return padJumpsCtx(0)
index 484be43c47bbe113e6c37df9f7dbc743880042b6..d99b0715f9a9790f6c8bd4099b373740f196cee5 100644 (file)
@@ -1017,7 +1017,7 @@ type Bug4Secret struct {
 
 // Test that a failed compilation doesn't leave around an executable encoder.
 // Issue 3723.
-func TestMutipleEncodingsOfBadType(t *testing.T) {
+func TestMultipleEncodingsOfBadType(t *testing.T) {
        x := Bug4Public{
                Name:   "name",
                Secret: Bug4Secret{1},
index b821b584c151156634dad0a2633139e9f2cf35ed..752d1a76c2c7ca8453607db259e562c1036c3705 100644 (file)
@@ -451,7 +451,7 @@ func (c *comparer) identical(x, y Type, p *ifacePair) bool {
                                        return false
                                }
                        }
-                       return indenticalOrigin(x, y)
+                       return identicalOrigin(x, y)
                }
 
        case *TypeParam:
@@ -468,7 +468,7 @@ func (c *comparer) identical(x, y Type, p *ifacePair) bool {
 }
 
 // identicalOrigin reports whether x and y originated in the same declaration.
-func indenticalOrigin(x, y *Named) bool {
+func identicalOrigin(x, y *Named) bool {
        // TODO(gri) is this correct?
        return x.Origin().obj == y.Origin().obj
 }
index bef851f4238e8ee4ad6e23fe53cde00975f774fe..e4121413c5e18e8a645c692e60e03468cd85b344 100644 (file)
@@ -726,7 +726,7 @@ func (u *unifier) nify(x, y Type, mode unifyMode, p *ifacePair) (result bool) {
                                        return false
                                }
                        }
-                       return indenticalOrigin(x, y)
+                       return identicalOrigin(x, y)
                }
 
        case *TypeParam:
index 68d9c99996a1c7b22f898101b1e5a2510b5f3451..99ce0f552d0173e7a9790c9536a2d7f7a842d261 100644 (file)
@@ -44,7 +44,7 @@ E     SAME            ababab          (0,0)(0,0)
 
 E      ((z)+|a)*       zabcde          (0,2)(1,2)
 
-#{E    a+?             aaaaaa          (0,1)   no *? +? mimimal match ops
+#{E    a+?             aaaaaa          (0,1)   no *? +? minimal match ops
 #E     (a)             aaa             (0,1)(0,1)
 #E     (a*?)           aaa             (0,0)(0,0)
 #E     (a)*?           aaa             (0,0)
index 1da7249abc5a3951a9c611974876c3252c9060e9..f6e2f6381382b56309abca907cf3f12c705828a9 100644 (file)
@@ -168,7 +168,7 @@ func cgocall(fn, arg unsafe.Pointer) int32 {
        // any C on the call stack, which there will be after this point. If
        // there isn't, we can use frame pointer unwinding to collect call
        // stacks efficiently. This will be the case for the first Go-to-C call
-       // on a stack, so it's prefereable to update it here, after we emit a
+       // on a stack, so it's preferable to update it here, after we emit a
        // trace event in entersyscall above.
        mp.ncgo++
 
index d18e69053d3fb7370cb0b7694dbfb5af65f53d3e..6fe04daea8d0a427c4d01e888974fa2e4e1f4b88 100644 (file)
@@ -575,7 +575,7 @@ func (s *emitState) emitCounterDataFile(finalHash [16]byte, w io.Writer) error {
 }
 
 // markProfileEmitted signals the runtime/coverage machinery that
-// coverate data output files have already been written out, and there
+// coverage data output files have already been written out, and there
 // is no need to take any additional action at exit time. This
 // function is called (via linknamed reference) from the
 // coverage-related boilerplate code in _testmain.go emitted for go
index 2ed411ae6140a7931f5c7dda7ceaa67873144cf6..c49eba030225d3b0e1bfb2243195a1ea85fe7b44 100644 (file)
@@ -537,7 +537,7 @@ func gcAssistAlloc1(gp *g, scanWork int64) {
                // The gcBlackenEnabled check in malloc races with the
                // store that clears it but an atomic check in every malloc
                // would be a performance hit.
-               // Instead we recheck it here on the non-preemptable system
+               // Instead we recheck it here on the non-preemptible system
                // stack to determine if we should perform an assist.
 
                // GC is done, so ignore any remaining debt.
index e39ad4f99cee3d1a6f3f9356d2b7704933fa7c06..d592de977137833c377459c488d4f3f0afd16c40 100644 (file)
@@ -766,7 +766,7 @@ func TestNoRaceCloseHappensBeforeRead(t *testing.T) {
 
 // Test that we call the proper race detector function when c.elemsize==0.
 // See https://github.com/golang/go/issues/42598
-func TestNoRaceElemetSize0(t *testing.T) {
+func TestNoRaceElemSize0(t *testing.T) {
        var x, y int
        var c = make(chan struct{}, 2)
        c <- struct{}{}
index 5a4684284b99b7422c9fc15c7bba654e342adb34..19a73d031c7670f0bb330a448414d2aa42e0bd08 100644 (file)
@@ -29,7 +29,7 @@ The test harness compiles the tests with the same go toolchain that is
 used to run the test. After writing tests for a newly added codegen
 transformation, it can be useful to first run the test harness with a
 toolchain from a released Go version (and verify that the new tests
-fail), and then re-runnig the tests using the devel toolchain.
+fail), and then re-running the tests using the devel toolchain.
 
 
 - Regexps comments syntax