Commit ad644d2e authored by Kazuhiro Sera's avatar Kazuhiro Sera Committed by Brad Fitzpatrick

all: fix typos detected by github.com/client9/misspell

Change-Id: Iadb3c5de8ae9ea45855013997ed70f7929a88661
GitHub-Last-Rev: ae85bcf82be8fee533e2b9901c6133921382c70a
GitHub-Pull-Request: golang/go#26920
Reviewed-on: https://go-review.googlesource.com/128955Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent c5d38b89
...@@ -41,7 +41,7 @@ func test9400(t *testing.T) { ...@@ -41,7 +41,7 @@ func test9400(t *testing.T) {
// Grow the stack and put down a test pattern // Grow the stack and put down a test pattern
const pattern = 0x123456789abcdef const pattern = 0x123456789abcdef
var big [1024]uint64 // len must match assmebly var big [1024]uint64 // len must match assembly
for i := range big { for i := range big {
big[i] = pattern big[i] = pattern
} }
......
...@@ -560,7 +560,7 @@ func TestNotes(t *testing.T) { ...@@ -560,7 +560,7 @@ func TestNotes(t *testing.T) {
abiHashNoteFound = true abiHashNoteFound = true
case 3: // ELF_NOTE_GODEPS_TAG case 3: // ELF_NOTE_GODEPS_TAG
if depsNoteFound { if depsNoteFound {
t.Error("multiple depedency list notes") t.Error("multiple dependency list notes")
} }
testDepsNote(t, f, note) testDepsNote(t, f, note)
depsNoteFound = true depsNoteFound = true
......
...@@ -293,7 +293,7 @@ func TestReadFromPanicReader(t *testing.T) { ...@@ -293,7 +293,7 @@ func TestReadFromPanicReader(t *testing.T) {
} }
check(t, "TestReadFromPanicReader (1)", &buf, "") check(t, "TestReadFromPanicReader (1)", &buf, "")
// Confirm that when Reader panics, the emtpy buffer remains empty // Confirm that when Reader panics, the empty buffer remains empty
var buf2 Buffer var buf2 Buffer
defer func() { defer func() {
recover() recover()
......
...@@ -33,7 +33,7 @@ func newParser(goarch string) *Parser { ...@@ -33,7 +33,7 @@ func newParser(goarch string) *Parser {
// tryParse executes parse func in panicOnError=true context. // tryParse executes parse func in panicOnError=true context.
// parse is expected to call any parsing methods that may panic. // parse is expected to call any parsing methods that may panic.
// Returns error gathered from recover; nil if no parse errors occured. // Returns error gathered from recover; nil if no parse errors occurred.
// //
// For unexpected panics, calls t.Fatal. // For unexpected panics, calls t.Fatal.
func tryParse(t *testing.T, parse func()) (err error) { func tryParse(t *testing.T, parse func()) (err error) {
......
...@@ -911,7 +911,7 @@ TEXT asmtest(SB),DUPOK|NOSPLIT,$0 ...@@ -911,7 +911,7 @@ TEXT asmtest(SB),DUPOK|NOSPLIT,$0
VADDPD.BCST.Z (AX), Z2, K1, Z1 // 62f1edd95808 VADDPD.BCST.Z (AX), Z2, K1, Z1 // 62f1edd95808
VMAXPD.BCST (AX), Z2, K1, Z1 // 62f1ed595f08 VMAXPD.BCST (AX), Z2, K1, Z1 // 62f1ed595f08
VMAXPD.BCST.Z (AX), Z2, K1, Z1 // 62f1edd95f08 VMAXPD.BCST.Z (AX), Z2, K1, Z1 // 62f1edd95f08
// EVEX: surpress all exceptions (SAE). // EVEX: suppress all exceptions (SAE).
VMAXPD.SAE Z3, Z2, K1, Z1 // 62f1ed595fcb or 62f1ed195fcb VMAXPD.SAE Z3, Z2, K1, Z1 // 62f1ed595fcb or 62f1ed195fcb
VMAXPD.SAE.Z Z3, Z2, K1, Z1 // 62f1edd95fcb or 62f1ed995fcb VMAXPD.SAE.Z Z3, Z2, K1, Z1 // 62f1edd95fcb or 62f1ed995fcb
VMAXPD (AX), Z2, K1, Z1 // 62f1ed495f08 VMAXPD (AX), Z2, K1, Z1 // 62f1ed495f08
......
...@@ -5710,7 +5710,7 @@ func (n *Node) StorageClass() ssa.StorageClass { ...@@ -5710,7 +5710,7 @@ func (n *Node) StorageClass() ssa.StorageClass {
case PAUTO: case PAUTO:
return ssa.ClassAuto return ssa.ClassAuto
default: default:
Fatalf("untranslateable storage class for %v: %s", n, n.Class()) Fatalf("untranslatable storage class for %v: %s", n, n.Class())
return 0 return 0
} }
} }
...@@ -133,7 +133,7 @@ func dse(f *Func) { ...@@ -133,7 +133,7 @@ func dse(f *Func) {
} }
} }
// elimDeadAutosGeneric deletes autos that are never accessed. To acheive this // elimDeadAutosGeneric deletes autos that are never accessed. To achieve this
// we track the operations that the address of each auto reaches and if it only // we track the operations that the address of each auto reaches and if it only
// reaches stores then we delete all the stores. The other operations will then // reaches stores then we delete all the stores. The other operations will then
// be eliminated by the dead code elimination pass. // be eliminated by the dead code elimination pass.
......
...@@ -62,6 +62,6 @@ func TestDefaultDir(t *testing.T) { ...@@ -62,6 +62,6 @@ func TestDefaultDir(t *testing.T) {
os.Setenv("HOME", "/") os.Setenv("HOME", "/")
if _, showWarnings := defaultDir(); showWarnings { if _, showWarnings := defaultDir(); showWarnings {
// https://golang.org/issue/26280 // https://golang.org/issue/26280
t.Error("Cache initalization warnings should be squelched when $GOCACHE and $XDG_CACHE_HOME are unset and $HOME is /") t.Error("Cache initialization warnings should be squelched when $GOCACHE and $XDG_CACHE_HOME are unset and $HOME is /")
} }
} }
...@@ -758,7 +758,7 @@ func (pkg *loadPkg) stackText() string { ...@@ -758,7 +758,7 @@ func (pkg *loadPkg) stackText() string {
} }
// why returns the text to use in "go mod why" output about the given package. // why returns the text to use in "go mod why" output about the given package.
// It is less ornate than the stackText but conatins the same information. // It is less ornate than the stackText but contains the same information.
func (pkg *loadPkg) why() string { func (pkg *loadPkg) why() string {
var buf strings.Builder var buf strings.Builder
var stack []*loadPkg var stack []*loadPkg
......
...@@ -2858,7 +2858,7 @@ func useResponseFile(path string, argLen int) bool { ...@@ -2858,7 +2858,7 @@ func useResponseFile(path string, argLen int) bool {
} }
// On the Go build system, use response files about 10% of the // On the Go build system, use response files about 10% of the
// time, just to excercise this codepath. // time, just to exercise this codepath.
isBuilder := os.Getenv("GO_BUILDER_NAME") != "" isBuilder := os.Getenv("GO_BUILDER_NAME") != ""
if isBuilder && rand.Intn(10) == 0 { if isBuilder && rand.Intn(10) == 0 {
return true return true
......
...@@ -439,6 +439,7 @@ func (task *taskDesc) complete() bool { ...@@ -439,6 +439,7 @@ func (task *taskDesc) complete() bool {
} }
// descendents returns all the task nodes in the subtree rooted from this task. // descendents returns all the task nodes in the subtree rooted from this task.
// TODO: the method name is misspelled
func (task *taskDesc) decendents() []*taskDesc { func (task *taskDesc) decendents() []*taskDesc {
if task == nil { if task == nil {
return nil return nil
......
...@@ -434,7 +434,7 @@ TEXT ·gcmAesEnc(SB),NOSPLIT,$0 ...@@ -434,7 +434,7 @@ TEXT ·gcmAesEnc(SB),NOSPLIT,$0
VLD1 (tPtr), [ACC0.B16] VLD1 (tPtr), [ACC0.B16]
VEOR ACC1.B16, ACC1.B16, ACC1.B16 VEOR ACC1.B16, ACC1.B16, ACC1.B16
VEOR ACCM.B16, ACCM.B16, ACCM.B16 VEOR ACCM.B16, ACCM.B16, ACCM.B16
// Prepare intial counter, and the increment vector // Prepare initial counter, and the increment vector
VLD1 (ctrPtr), [CTR.B16] VLD1 (ctrPtr), [CTR.B16]
VEOR INC.B16, INC.B16, INC.B16 VEOR INC.B16, INC.B16, INC.B16
MOVD $1, H0 MOVD $1, H0
...@@ -733,7 +733,7 @@ TEXT ·gcmAesDec(SB),NOSPLIT,$0 ...@@ -733,7 +733,7 @@ TEXT ·gcmAesDec(SB),NOSPLIT,$0
VLD1 (tPtr), [ACC0.B16] VLD1 (tPtr), [ACC0.B16]
VEOR ACC1.B16, ACC1.B16, ACC1.B16 VEOR ACC1.B16, ACC1.B16, ACC1.B16
VEOR ACCM.B16, ACCM.B16, ACCM.B16 VEOR ACCM.B16, ACCM.B16, ACCM.B16
// Prepare intial counter, and the increment vector // Prepare initial counter, and the increment vector
VLD1 (ctrPtr), [CTR.B16] VLD1 (ctrPtr), [CTR.B16]
VEOR INC.B16, INC.B16, INC.B16 VEOR INC.B16, INC.B16, INC.B16
MOVD $1, H0 MOVD $1, H0
...@@ -969,7 +969,7 @@ tail: ...@@ -969,7 +969,7 @@ tail:
tailLast: tailLast:
VEOR KLAST.B16, B0.B16, B0.B16 VEOR KLAST.B16, B0.B16, B0.B16
// Assuming it is safe to load past dstPtr due to the presense of the tag // Assuming it is safe to load past dstPtr due to the presence of the tag
VLD1 (srcPtr), [B5.B16] VLD1 (srcPtr), [B5.B16]
VEOR B5.B16, B0.B16, B0.B16 VEOR B5.B16, B0.B16, B0.B16
......
...@@ -861,7 +861,7 @@ nextIntermediate: ...@@ -861,7 +861,7 @@ nextIntermediate:
} }
// validHostname returns whether host is a valid hostname that can be matched or // validHostname returns whether host is a valid hostname that can be matched or
// matched against according to RFC 6125 2.2, with some leniency to accomodate // matched against according to RFC 6125 2.2, with some leniency to accommodate
// legacy values. // legacy values.
func validHostname(host string) bool { func validHostname(host string) bool {
host = strings.TrimSuffix(host, ".") host = strings.TrimSuffix(host, ".")
......
...@@ -32,7 +32,7 @@ TEXT indexbody<>(SB),NOSPLIT,$0-56 ...@@ -32,7 +32,7 @@ TEXT indexbody<>(SB),NOSPLIT,$0-56
// to avoid repeatedly re-load it again and again // to avoid repeatedly re-load it again and again
// for sebsequent substring comparisons // for sebsequent substring comparisons
SUB R3, R1, R4 SUB R3, R1, R4
// R4 contains the start of last substring for comparsion // R4 contains the start of last substring for comparison
ADD R0, R4, R4 ADD R0, R4, R4
ADD $1, R0, R8 ADD $1, R0, R8
......
...@@ -37,7 +37,7 @@ type UserRegionDesc struct { ...@@ -37,7 +37,7 @@ type UserRegionDesc struct {
// Region end event. Normally EvUserRegion end event or nil, // Region end event. Normally EvUserRegion end event or nil,
// but can be EvGoStop or EvGoEnd event if the goroutine // but can be EvGoStop or EvGoEnd event if the goroutine
// terminated without explicitely ending the region. // terminated without explicitly ending the region.
End *Event End *Event
GExecutionStat GExecutionStat
......
...@@ -11,7 +11,7 @@ parses /etc/passwd and /etc/group. The other is cgo-based and relies on ...@@ -11,7 +11,7 @@ parses /etc/passwd and /etc/group. The other is cgo-based and relies on
the standard C library (libc) routines such as getpwuid_r and getgrnam_r. the standard C library (libc) routines such as getpwuid_r and getgrnam_r.
When cgo is available, cgo-based (libc-backed) code is used by default. When cgo is available, cgo-based (libc-backed) code is used by default.
This can be overriden by using osusergo build tag, which enforces This can be overridden by using osusergo build tag, which enforces
the pure Go implementation. the pure Go implementation.
*/ */
package user package user
......
...@@ -1472,7 +1472,7 @@ GLOBL debugCallFrameTooLarge<>(SB), RODATA, $0x14 // Size duplicated below ...@@ -1472,7 +1472,7 @@ GLOBL debugCallFrameTooLarge<>(SB), RODATA, $0x14 // Size duplicated below
// This function communicates back to the debugger by setting RAX and // This function communicates back to the debugger by setting RAX and
// invoking INT3 to raise a breakpoint signal. See the comments in the // invoking INT3 to raise a breakpoint signal. See the comments in the
// implementation for the protocol the debugger is expected to // implementation for the protocol the debugger is expected to
// follow. InjectDebugCall in the runtime tests demonstates this protocol. // follow. InjectDebugCall in the runtime tests demonstrates this protocol.
// //
// The debugger must ensure that any pointers passed to the function // The debugger must ensure that any pointers passed to the function
// obey escape analysis requirements. Specifically, it must not pass // obey escape analysis requirements. Specifically, it must not pass
......
...@@ -363,7 +363,7 @@ TEXT runtime·tstart_stdcall(SB),NOSPLIT,$0 ...@@ -363,7 +363,7 @@ TEXT runtime·tstart_stdcall(SB),NOSPLIT,$0
// Layout new m scheduler stack on os stack. // Layout new m scheduler stack on os stack.
MOVQ SP, AX MOVQ SP, AX
MOVQ AX, (g_stack+stack_hi)(DX) MOVQ AX, (g_stack+stack_hi)(DX)
SUBQ $(64*1024), AX // inital stack size (adjusted later) SUBQ $(64*1024), AX // initial stack size (adjusted later)
MOVQ AX, (g_stack+stack_lo)(DX) MOVQ AX, (g_stack+stack_lo)(DX)
ADDQ $const__StackGuard, AX ADDQ $const__StackGuard, AX
MOVQ AX, g_stackguard0(DX) MOVQ AX, g_stackguard0(DX)
......
...@@ -1076,7 +1076,7 @@ func (t Time) Local() Time { ...@@ -1076,7 +1076,7 @@ func (t Time) Local() Time {
return t return t
} }
// In returns a copy of t representating the same time instant, but // In returns a copy of t representing the same time instant, but
// with the copy's location information set to loc for display // with the copy's location information set to loc for display
// purposes. // purposes.
// //
......
...@@ -18,7 +18,7 @@ import ( ...@@ -18,7 +18,7 @@ import (
) )
// Each of these tests is expected to fail (missing package clause) // Each of these tests is expected to fail (missing package clause)
// at the position determined by the preceeding line directive. // at the position determined by the preceding line directive.
var tests = []struct { var tests = []struct {
src, pos string src, pos string
}{ }{
......
...@@ -465,7 +465,7 @@ func f29(b bool) { ...@@ -465,7 +465,7 @@ func f29(b bool) {
// copy of array of pointers should die at end of range loop // copy of array of pointers should die at end of range loop
var pstructarr [10]pstruct var pstructarr [10]pstruct
// Struct size choosen to make pointer to element in pstructarr // Struct size chosen to make pointer to element in pstructarr
// not computable by strength reduction. // not computable by strength reduction.
type pstruct struct { type pstruct struct {
intp *int intp *int
......
...@@ -435,7 +435,7 @@ func (ctxt *context) match(name string) bool { ...@@ -435,7 +435,7 @@ func (ctxt *context) match(name string) bool {
func init() { checkShouldTest() } func init() { checkShouldTest() }
// goGcflags returns the -gcflags argument to use with go build / go run. // goGcflags returns the -gcflags argument to use with go build / go run.
// This must match the flags used for building the standard libary, // This must match the flags used for building the standard library,
// or else the commands will rebuild any needed packages (like runtime) // or else the commands will rebuild any needed packages (like runtime)
// over and over. // over and over.
func goGcflags() string { func goGcflags() string {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment