diff options
| author | Ville Skyttä <ville.skytta@iki.fi> | 2019-11-15 19:49:30 +0000 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2019-11-15 21:04:43 +0000 |
| commit | 440f7d64048cd94cba669e16fe92137ce6b84073 (patch) | |
| tree | 29b5d5240c55d6065b8341c2dd25ac84ca09f4a2 /src/runtime | |
| parent | d856e05d64591d3dec6411e3d86fe325e85eecc5 (diff) | |
| download | go-440f7d64048cd94cba669e16fe92137ce6b84073.tar.xz | |
all: fix a bunch of misspellings
Change-Id: I5b909df0fd048cd66c5a27fca1b06466d3bcaac7
GitHub-Last-Rev: 778c5d21311abee09a5fbda2e4005a5fd4cc3f9f
GitHub-Pull-Request: golang/go#35624
Reviewed-on: https://go-review.googlesource.com/c/go/+/207421
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime')
| -rw-r--r-- | src/runtime/defs_aix.go | 2 | ||||
| -rw-r--r-- | src/runtime/error.go | 2 | ||||
| -rw-r--r-- | src/runtime/mgcscavenge.go | 2 | ||||
| -rw-r--r-- | src/runtime/mheap.go | 2 | ||||
| -rw-r--r-- | src/runtime/pprof/pprof_test.go | 2 | ||||
| -rw-r--r-- | src/runtime/slice.go | 2 | ||||
| -rw-r--r-- | src/runtime/stack.go | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/src/runtime/defs_aix.go b/src/runtime/defs_aix.go index a8924133c5..23a6cac2bb 100644 --- a/src/runtime/defs_aix.go +++ b/src/runtime/defs_aix.go @@ -8,7 +8,7 @@ Input to cgo -godefs GOARCH=ppc64 go tool cgo -godefs defs_aix.go > defs_aix_ppc64_tmp.go -This is only an helper to create defs_aix_ppc64.go +This is only a helper to create defs_aix_ppc64.go Go runtime functions require the "linux" name of fields (ss_sp, si_addr, etc) However, AIX structures don't provide such names and must be modified. diff --git a/src/runtime/error.go b/src/runtime/error.go index 0085dfc824..555befa43d 100644 --- a/src/runtime/error.go +++ b/src/runtime/error.go @@ -88,7 +88,7 @@ func (e plainError) Error() string { return string(e) } -// An boundsError represents a an indexing or slicing operation gone wrong. +// A boundsError represents an indexing or slicing operation gone wrong. type boundsError struct { x int64 y int diff --git a/src/runtime/mgcscavenge.go b/src/runtime/mgcscavenge.go index b3f9cca10d..9c45ce8c87 100644 --- a/src/runtime/mgcscavenge.go +++ b/src/runtime/mgcscavenge.go @@ -521,7 +521,7 @@ func fillAligned(x uint64, m uint) uint64 { // "[It] works by first zeroing the high bits of the [8] // bytes in the word. Subsequently, it adds a number that // will result in an overflow to the high bit of a byte if - // any of the low bits were initialy set. Next the high + // any of the low bits were initially set. Next the high // bits of the original word are ORed with these values; // thus, the high bit of a byte is set iff any bit in the // byte was set. Finally, we determine if any of these high diff --git a/src/runtime/mheap.go b/src/runtime/mheap.go index e87da93326..3f3e36728b 100644 --- a/src/runtime/mheap.go +++ b/src/runtime/mheap.go @@ -1419,7 +1419,7 @@ func (h *mheap) freeSpanLocked(s *mspan, acctinuse, acctidle bool) { // unscav and adds it into scav before continuing. func (h *mheap) scavengeAll() { // Disallow malloc or panic while holding the heap lock. We do - // this here because this is an non-mallocgc entry-point to + // this here because this is a non-mallocgc entry-point to // the mheap API. gp := getg() gp.m.mallocing++ diff --git a/src/runtime/pprof/pprof_test.go b/src/runtime/pprof/pprof_test.go index 9eba0078a5..64e03aeccf 100644 --- a/src/runtime/pprof/pprof_test.go +++ b/src/runtime/pprof/pprof_test.go @@ -112,7 +112,7 @@ func containsInlinedCall(f interface{}, maxBytes int) bool { } // findInlinedCall returns the PC of an inlined function call within -// the funtion body for the function f if any. +// the function body for the function f if any. func findInlinedCall(f interface{}, maxBytes int) (pc uint64, found bool) { fFunc := runtime.FuncForPC(uintptr(funcPC(f))) if fFunc == nil || fFunc.Entry() == 0 { diff --git a/src/runtime/slice.go b/src/runtime/slice.go index 79cfc69c54..16937a2a01 100644 --- a/src/runtime/slice.go +++ b/src/runtime/slice.go @@ -16,7 +16,7 @@ type slice struct { cap int } -// An notInHeapSlice is a slice backed by go:notinheap memory. +// A notInHeapSlice is a slice backed by go:notinheap memory. type notInHeapSlice struct { array *notInHeap len int diff --git a/src/runtime/stack.go b/src/runtime/stack.go index 68b24432a4..84fbd33329 100644 --- a/src/runtime/stack.go +++ b/src/runtime/stack.go @@ -627,7 +627,7 @@ func adjustframe(frame *stkframe, arg unsafe.Pointer) bool { print(" adjusting ", funcname(f), " frame=[", hex(frame.sp), ",", hex(frame.fp), "] pc=", hex(frame.pc), " continpc=", hex(frame.continpc), "\n") } if f.funcID == funcID_systemstack_switch { - // A special routine at the bottom of stack of a goroutine that does an systemstack call. + // A special routine at the bottom of stack of a goroutine that does a systemstack call. // We will allow it to be copied even though we don't // have full GC info for it (because it is written in asm). return true |
