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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/go/types/unify.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)