mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
all: fix a bunch of misspellings
Change-Id: I94cebca86706e072fbe3be782d3edbe0e22b9432
GitHub-Last-Rev: 8e15a40545
GitHub-Pull-Request: golang/go#28067
Reviewed-on: https://go-review.googlesource.com/c/140437
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
165ebaf97b
commit
04dc1b2443
13 changed files with 16 additions and 15 deletions
|
|
@ -178,7 +178,7 @@ func (w *Writer) Close() error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// store max values in the regular end record to signal that
|
// store max values in the regular end record to signal
|
||||||
// that the zip64 values should be used instead
|
// that the zip64 values should be used instead
|
||||||
records = uint16max
|
records = uint16max
|
||||||
size = uint32max
|
size = uint32max
|
||||||
|
|
|
||||||
2
src/cmd/asm/internal/asm/testdata/386enc.s
vendored
2
src/cmd/asm/internal/asm/testdata/386enc.s
vendored
|
|
@ -18,7 +18,7 @@ TEXT asmtest(SB),DUPOK|NOSPLIT,$0
|
||||||
MOVL -2147483648(AX), AX // 8b8000000080
|
MOVL -2147483648(AX), AX // 8b8000000080
|
||||||
ADDL 2147483648(AX), AX // 038000000080
|
ADDL 2147483648(AX), AX // 038000000080
|
||||||
ADDL -2147483648(AX), AX // 038000000080
|
ADDL -2147483648(AX), AX // 038000000080
|
||||||
// Make sure MOV CR/DR continues to work after changing it's movtabs.
|
// Make sure MOV CR/DR continues to work after changing its movtabs.
|
||||||
MOVL CR0, AX // 0f20c0
|
MOVL CR0, AX // 0f20c0
|
||||||
MOVL CR0, DX // 0f20c2
|
MOVL CR0, DX // 0f20c2
|
||||||
MOVL CR4, DI // 0f20e7
|
MOVL CR4, DI // 0f20e7
|
||||||
|
|
|
||||||
|
|
@ -302,7 +302,7 @@ TEXT asmtest(SB),DUPOK|NOSPLIT,$0
|
||||||
// Check that LEAL is permitted to use overflowing offset.
|
// Check that LEAL is permitted to use overflowing offset.
|
||||||
LEAL 2400959708(BP)(R10*1), BP // 428dac15dcbc1b8f
|
LEAL 2400959708(BP)(R10*1), BP // 428dac15dcbc1b8f
|
||||||
LEAL 3395469782(AX)(R10*1), AX // 428d8410d6c162ca
|
LEAL 3395469782(AX)(R10*1), AX // 428d8410d6c162ca
|
||||||
// Make sure MOV CR/DR continues to work after changing it's movtabs.
|
// Make sure MOV CR/DR continues to work after changing its movtabs.
|
||||||
MOVQ CR0, AX // 0f20c0
|
MOVQ CR0, AX // 0f20c0
|
||||||
MOVQ CR0, DX // 0f20c2
|
MOVQ CR0, DX // 0f20c2
|
||||||
MOVQ CR4, DI // 0f20e7
|
MOVQ CR4, DI // 0f20e7
|
||||||
|
|
|
||||||
|
|
@ -946,7 +946,8 @@ opSwitch:
|
||||||
case OCALLMETH, OCALLFUNC, OCALLINTER:
|
case OCALLMETH, OCALLFUNC, OCALLINTER:
|
||||||
e.esccall(n, parent)
|
e.esccall(n, parent)
|
||||||
|
|
||||||
// esccall already done on n.Rlist.First(). tie it's Retval to n.List
|
// esccall already done on n.Rlist.First()
|
||||||
|
// tie its Retval to n.List
|
||||||
case OAS2FUNC: // x,y = f()
|
case OAS2FUNC: // x,y = f()
|
||||||
rs := e.nodeEscState(n.Rlist.First()).Retval.Slice()
|
rs := e.nodeEscState(n.Rlist.First()).Retval.Slice()
|
||||||
where := n
|
where := n
|
||||||
|
|
|
||||||
|
|
@ -967,7 +967,7 @@ func ssaGenValue(s *gc.SSAGenState, v *ssa.Value) {
|
||||||
case ssa.OpPPC64LoweredMove:
|
case ssa.OpPPC64LoweredMove:
|
||||||
|
|
||||||
// This will be used when moving more
|
// This will be used when moving more
|
||||||
// than 8 bytes. Moves start with as
|
// than 8 bytes. Moves start with
|
||||||
// as many 8 byte moves as possible, then
|
// as many 8 byte moves as possible, then
|
||||||
// 4, 2, or 1 byte(s) as remaining. This will
|
// 4, 2, or 1 byte(s) as remaining. This will
|
||||||
// work and be efficient for power8 or later.
|
// work and be efficient for power8 or later.
|
||||||
|
|
|
||||||
|
|
@ -194,7 +194,7 @@ func newEVEXSuffix() evexSuffix {
|
||||||
return evexSuffix{rounding: rcUnset}
|
return evexSuffix{rounding: rcUnset}
|
||||||
}
|
}
|
||||||
|
|
||||||
// evexSuffixMap maps obj.X86suffix to it's decoded version.
|
// evexSuffixMap maps obj.X86suffix to its decoded version.
|
||||||
// Filled during init().
|
// Filled during init().
|
||||||
var evexSuffixMap [255]evexSuffix
|
var evexSuffixMap [255]evexSuffix
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -646,7 +646,7 @@ func (ctxt *Link) loadlib() {
|
||||||
//
|
//
|
||||||
// These are the symbols that begin with the prefix 'type.' and
|
// These are the symbols that begin with the prefix 'type.' and
|
||||||
// contain run-time type information used by the runtime and reflect
|
// contain run-time type information used by the runtime and reflect
|
||||||
// packages. All Go binaries contain these symbols, but only only
|
// packages. All Go binaries contain these symbols, but only
|
||||||
// those programs loaded dynamically in multiple parts need these
|
// those programs loaded dynamically in multiple parts need these
|
||||||
// symbols to have entries in the symbol table.
|
// symbols to have entries in the symbol table.
|
||||||
func (ctxt *Link) mangleTypeSym() {
|
func (ctxt *Link) mangleTypeSym() {
|
||||||
|
|
|
||||||
|
|
@ -232,10 +232,10 @@ func TestVetVerbose(t *testing.T) {
|
||||||
// this function will report an error.
|
// this function will report an error.
|
||||||
// Likewise if outStr does not have an error for a line which has a comment,
|
// Likewise if outStr does not have an error for a line which has a comment,
|
||||||
// or if the error message does not match the <regexp>.
|
// or if the error message does not match the <regexp>.
|
||||||
// The <regexp> syntax is Perl but its best to stick to egrep.
|
// The <regexp> syntax is Perl but it's best to stick to egrep.
|
||||||
//
|
//
|
||||||
// Sources files are supplied as fullshort slice.
|
// Sources files are supplied as fullshort slice.
|
||||||
// It consists of pairs: full path to source file and it's base name.
|
// It consists of pairs: full path to source file and its base name.
|
||||||
func errorCheck(outStr string, wantAuto bool, fullshort ...string) (err error) {
|
func errorCheck(outStr string, wantAuto bool, fullshort ...string) (err error) {
|
||||||
var errs []error
|
var errs []error
|
||||||
out := splitOutput(outStr, wantAuto)
|
out := splitOutput(outStr, wantAuto)
|
||||||
|
|
|
||||||
|
|
@ -597,7 +597,7 @@ func TestPoolExhaustOnCancel(t *testing.T) {
|
||||||
state := 0
|
state := 0
|
||||||
|
|
||||||
// waiter will be called for all queries, including
|
// waiter will be called for all queries, including
|
||||||
// initial setup queries. The state is only assigned when no
|
// initial setup queries. The state is only assigned when
|
||||||
// no queries are made.
|
// no queries are made.
|
||||||
//
|
//
|
||||||
// Only allow the first batch of queries to finish once the
|
// Only allow the first batch of queries to finish once the
|
||||||
|
|
|
||||||
|
|
@ -942,7 +942,7 @@ func (b *body) Close() error {
|
||||||
// no trailer and closing the connection next.
|
// no trailer and closing the connection next.
|
||||||
// no point in reading to EOF.
|
// no point in reading to EOF.
|
||||||
case b.doEarlyClose:
|
case b.doEarlyClose:
|
||||||
// Read up to maxPostHandlerReadBytes bytes of the body, looking for
|
// Read up to maxPostHandlerReadBytes bytes of the body, looking
|
||||||
// for EOF (and trailers), so we can re-use this connection.
|
// for EOF (and trailers), so we can re-use this connection.
|
||||||
if lr, ok := b.src.(*io.LimitedReader); ok && lr.N > maxPostHandlerReadBytes {
|
if lr, ok := b.src.(*io.LimitedReader); ok && lr.N > maxPostHandlerReadBytes {
|
||||||
// There was a declared Content-Length, and we have more bytes remaining
|
// There was a declared Content-Length, and we have more bytes remaining
|
||||||
|
|
|
||||||
|
|
@ -673,7 +673,7 @@ func (h *mheap) alloc_m(npage uintptr, spanclass spanClass, large bool) *mspan {
|
||||||
// TODO(austin): This tends to sweep a large number of
|
// TODO(austin): This tends to sweep a large number of
|
||||||
// spans in order to find a few completely free spans
|
// spans in order to find a few completely free spans
|
||||||
// (for example, in the garbage benchmark, this sweeps
|
// (for example, in the garbage benchmark, this sweeps
|
||||||
// ~30x the number of pages its trying to allocate).
|
// ~30x the number of pages it's trying to allocate).
|
||||||
// If GC kept a bit for whether there were any marks
|
// If GC kept a bit for whether there were any marks
|
||||||
// in a span, we could release these free spans
|
// in a span, we could release these free spans
|
||||||
// at the end of GC and eliminate this entirely.
|
// at the end of GC and eliminate this entirely.
|
||||||
|
|
|
||||||
|
|
@ -320,7 +320,7 @@ TEXT runtime·_sigtramp(SB),NOSPLIT,$64
|
||||||
TEXT runtime·cgoSigtramp(SB),NOSPLIT|NOFRAME,$0
|
TEXT runtime·cgoSigtramp(SB),NOSPLIT|NOFRAME,$0
|
||||||
// The stack unwinder, presumably written in C, may not be able to
|
// The stack unwinder, presumably written in C, may not be able to
|
||||||
// handle Go frame correctly. So, this function is NOFRAME, and we
|
// handle Go frame correctly. So, this function is NOFRAME, and we
|
||||||
// we save/restore LR manually.
|
// save/restore LR manually.
|
||||||
MOVD LR, R10
|
MOVD LR, R10
|
||||||
|
|
||||||
// We're coming from C code, initialize essential registers.
|
// We're coming from C code, initialize essential registers.
|
||||||
|
|
|
||||||
|
|
@ -1071,10 +1071,10 @@ func splitOutput(out string, wantAuto bool) []string {
|
||||||
// this function will report an error.
|
// this function will report an error.
|
||||||
// Likewise if outStr does not have an error for a line which has a comment,
|
// Likewise if outStr does not have an error for a line which has a comment,
|
||||||
// or if the error message does not match the <regexp>.
|
// or if the error message does not match the <regexp>.
|
||||||
// The <regexp> syntax is Perl but its best to stick to egrep.
|
// The <regexp> syntax is Perl but it's best to stick to egrep.
|
||||||
//
|
//
|
||||||
// Sources files are supplied as fullshort slice.
|
// Sources files are supplied as fullshort slice.
|
||||||
// It consists of pairs: full path to source file and it's base name.
|
// It consists of pairs: full path to source file and its base name.
|
||||||
func (t *test) errorCheck(outStr string, wantAuto bool, fullshort ...string) (err error) {
|
func (t *test) errorCheck(outStr string, wantAuto bool, fullshort ...string) (err error) {
|
||||||
defer func() {
|
defer func() {
|
||||||
if *verbose && err != nil {
|
if *verbose && err != nil {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue