Skip to content

Commit

Permalink
all: fix typos
Browse files Browse the repository at this point in the history
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 <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>
  • Loading branch information
callthingsoff authored and gopherbot committed Jul 18, 2023
1 parent 88a545d commit 5d481ab
Show file tree
Hide file tree
Showing 16 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/cmd/cgo/internal/test/issue9400_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/cmd/compile/internal/types2/predicates.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/compile/internal/types2/unify.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/go/internal/modget/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/internal/obj/arm64/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/internal/obj/objfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/internal/obj/x86/asm6.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/encoding/gob/encoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down
4 changes: 2 additions & 2 deletions src/go/types/predicates.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/go/types/unify.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/regexp/testdata/nullsubexpr.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/cgocall.go
Original file line number Diff line number Diff line change
Expand Up @@ -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++

Expand Down
2 changes: 1 addition & 1 deletion src/runtime/coverage/emit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/mgcmark.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/race/testdata/chan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}{}
Expand Down
2 changes: 1 addition & 1 deletion test/codegen/README
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5d481ab

Please sign in to comment.