Skip to content

Commit 5d481ab

Browse files
callthingsoffgopherbot
authored andcommitted
all: fix typos
Change-Id: I510b0a4bf3472d937393800dd57472c30beef329 GitHub-Last-Rev: 8d289b7 GitHub-Pull-Request: #60960 Reviewed-on: https://go-review.googlesource.com/c/go/+/505398 Auto-Submit: Robert Findley <[email protected]> Reviewed-by: Robert Findley <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Robert Findley <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent 88a545d commit 5d481ab

File tree

16 files changed

+18
-18
lines changed

16 files changed

+18
-18
lines changed

src/cmd/cgo/internal/test/issue9400_linux.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func test9400(t *testing.T) {
4848
}
4949

5050
// Disable GC for the duration of the test.
51-
// This avoids a potential GC deadlock when spinning in uninterruptable ASM below #49695.
51+
// This avoids a potential GC deadlock when spinning in uninterruptible ASM below #49695.
5252
defer debug.SetGCPercent(debug.SetGCPercent(-1))
5353
// SetGCPercent waits until the mark phase is over, but the runtime
5454
// also preempts at the start of the sweep phase, so make sure that's

src/cmd/compile/internal/types2/predicates.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ func (c *comparer) identical(x, y Type, p *ifacePair) bool {
449449
return false
450450
}
451451
}
452-
return indenticalOrigin(x, y)
452+
return identicalOrigin(x, y)
453453
}
454454

455455
case *TypeParam:
@@ -466,7 +466,7 @@ func (c *comparer) identical(x, y Type, p *ifacePair) bool {
466466
}
467467

468468
// identicalOrigin reports whether x and y originated in the same declaration.
469-
func indenticalOrigin(x, y *Named) bool {
469+
func identicalOrigin(x, y *Named) bool {
470470
// TODO(gri) is this correct?
471471
return x.Origin().obj == y.Origin().obj
472472
}

src/cmd/compile/internal/types2/unify.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ func (u *unifier) nify(x, y Type, mode unifyMode, p *ifacePair) (result bool) {
724724
return false
725725
}
726726
}
727-
return indenticalOrigin(x, y)
727+
return identicalOrigin(x, y)
728728
}
729729

730730
case *TypeParam:

src/cmd/go/internal/modget/get.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ func runGet(ctx context.Context, cmd *base.Command, args []string) {
344344
// The result of any version query for a given module — even "upgrade" or
345345
// "patch" — is always relative to the build list at the start of
346346
// the 'go get' command, not an intermediate state, and is therefore
347-
// deterministic and therefore cachable, and the constraints on the
347+
// deterministic and therefore cacheable, and the constraints on the
348348
// selected version of each module can only narrow as we iterate.
349349
//
350350
// "all" is functionally very similar to a wildcard pattern. The set of

src/cmd/internal/obj/arm64/doc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Examples:
9696
7. Move large constants to vector registers.
9797
9898
Go asm uses VMOVQ/VMOVD/VMOVS to move 128-bit, 64-bit and 32-bit constants into vector registers, respectively.
99-
And for a 128-bit interger, it take two 64-bit operands, for the low and high parts separately.
99+
And for a 128-bit integer, it take two 64-bit operands, for the low and high parts separately.
100100
101101
Examples:
102102

src/cmd/internal/obj/objfile.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ func (w *writer) Hash(s *LSym) {
423423
// contentHashSection returns a mnemonic for s's section.
424424
// The goal is to prevent content-addressability from moving symbols between sections.
425425
// contentHashSection only distinguishes between sets of sections for which this matters.
426-
// Allowing flexibility increases the effectiveness of content-addressibility.
426+
// Allowing flexibility increases the effectiveness of content-addressability.
427427
// But in some cases, such as doing addressing based on a base symbol,
428428
// we need to ensure that a symbol is always in a particular section.
429429
// Some of these conditions are duplicated in cmd/link/internal/ld.(*Link).symtab.

src/cmd/internal/obj/x86/asm6.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1978,7 +1978,7 @@ func fusedJump(p *obj.Prog) (bool, uint8) {
19781978
type padJumpsCtx int32
19791979

19801980
func makePjcCtx(ctxt *obj.Link) padJumpsCtx {
1981-
// Disable jump padding on 32 bit builds by settting
1981+
// Disable jump padding on 32 bit builds by setting
19821982
// padJumps to 0.
19831983
if ctxt.Arch.Family == sys.I386 {
19841984
return padJumpsCtx(0)

src/encoding/gob/encoder_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@ type Bug4Secret struct {
10171017

10181018
// Test that a failed compilation doesn't leave around an executable encoder.
10191019
// Issue 3723.
1020-
func TestMutipleEncodingsOfBadType(t *testing.T) {
1020+
func TestMultipleEncodingsOfBadType(t *testing.T) {
10211021
x := Bug4Public{
10221022
Name: "name",
10231023
Secret: Bug4Secret{1},

src/go/types/predicates.go

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/go/types/unify.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/regexp/testdata/nullsubexpr.dat

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ E SAME ababab (0,0)(0,0)
4444

4545
E ((z)+|a)* zabcde (0,2)(1,2)
4646

47-
#{E a+? aaaaaa (0,1) no *? +? mimimal match ops
47+
#{E a+? aaaaaa (0,1) no *? +? minimal match ops
4848
#E (a) aaa (0,1)(0,1)
4949
#E (a*?) aaa (0,0)(0,0)
5050
#E (a)*? aaa (0,0)

src/runtime/cgocall.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ func cgocall(fn, arg unsafe.Pointer) int32 {
168168
// any C on the call stack, which there will be after this point. If
169169
// there isn't, we can use frame pointer unwinding to collect call
170170
// stacks efficiently. This will be the case for the first Go-to-C call
171-
// on a stack, so it's prefereable to update it here, after we emit a
171+
// on a stack, so it's preferable to update it here, after we emit a
172172
// trace event in entersyscall above.
173173
mp.ncgo++
174174

src/runtime/coverage/emit.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ func (s *emitState) emitCounterDataFile(finalHash [16]byte, w io.Writer) error {
575575
}
576576

577577
// markProfileEmitted signals the runtime/coverage machinery that
578-
// coverate data output files have already been written out, and there
578+
// coverage data output files have already been written out, and there
579579
// is no need to take any additional action at exit time. This
580580
// function is called (via linknamed reference) from the
581581
// coverage-related boilerplate code in _testmain.go emitted for go

src/runtime/mgcmark.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ func gcAssistAlloc1(gp *g, scanWork int64) {
537537
// The gcBlackenEnabled check in malloc races with the
538538
// store that clears it but an atomic check in every malloc
539539
// would be a performance hit.
540-
// Instead we recheck it here on the non-preemptable system
540+
// Instead we recheck it here on the non-preemptible system
541541
// stack to determine if we should perform an assist.
542542

543543
// GC is done, so ignore any remaining debt.

src/runtime/race/testdata/chan_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ func TestNoRaceCloseHappensBeforeRead(t *testing.T) {
766766

767767
// Test that we call the proper race detector function when c.elemsize==0.
768768
// See https://github.com/golang/go/issues/42598
769-
func TestNoRaceElemetSize0(t *testing.T) {
769+
func TestNoRaceElemSize0(t *testing.T) {
770770
var x, y int
771771
var c = make(chan struct{}, 2)
772772
c <- struct{}{}

test/codegen/README

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The test harness compiles the tests with the same go toolchain that is
2929
used to run the test. After writing tests for a newly added codegen
3030
transformation, it can be useful to first run the test harness with a
3131
toolchain from a released Go version (and verify that the new tests
32-
fail), and then re-runnig the tests using the devel toolchain.
32+
fail), and then re-running the tests using the devel toolchain.
3333

3434

3535
- Regexps comments syntax

0 commit comments

Comments
 (0)