Skip to content

Commit 8d289b7

Browse files
committed
add files to fix typos
1 parent 45928e3 commit 8d289b7

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
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/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/runtime/cgocall.go

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ func (s *emitState) emitCounterDataFile(finalHash [16]byte, w io.Writer) error {
588588
}
589589

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

src/runtime/mgcmark.go

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

0 commit comments

Comments
 (0)