Skip to content

Commit

Permalink
all: fix a bunch of misspellings
Browse files Browse the repository at this point in the history
Change-Id: I94cebca86706e072fbe3be782d3edbe0e22b9432
GitHub-Last-Rev: 8e15a40545704fb21b41a8768079f2da19341ef3
GitHub-Pull-Request: golang/go#28067
Reviewed-on: https://go-review.googlesource.com/c/140437
Run-TryBot: Ian Lance Taylor <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
Reviewed-by: Ian Lance Taylor <[email protected]>
  • Loading branch information
igorzhilianin authored and ianlancetaylor committed Oct 8, 2018
1 parent 165ebaf commit 04dc1b2
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/archive/zip/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func (w *Writer) Close() error {
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
records = uint16max
size = uint32max
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/asm/internal/asm/testdata/386enc.s
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ TEXT asmtest(SB),DUPOK|NOSPLIT,$0
MOVL -2147483648(AX), AX // 8b8000000080
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, DX // 0f20c2
MOVL CR4, DI // 0f20e7
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/asm/internal/asm/testdata/amd64enc_extra.s
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ TEXT asmtest(SB),DUPOK|NOSPLIT,$0
// Check that LEAL is permitted to use overflowing offset.
LEAL 2400959708(BP)(R10*1), BP // 428dac15dcbc1b8f
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, DX // 0f20c2
MOVQ CR4, DI // 0f20e7
Expand Down
3 changes: 2 additions & 1 deletion src/cmd/compile/internal/gc/esc.go
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,8 @@ opSwitch:
case OCALLMETH, OCALLFUNC, OCALLINTER:
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()
rs := e.nodeEscState(n.Rlist.First()).Retval.Slice()
where := n
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/compile/internal/ppc64/ssa.go
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ func ssaGenValue(s *gc.SSAGenState, v *ssa.Value) {
case ssa.OpPPC64LoweredMove:

// 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
// 4, 2, or 1 byte(s) as remaining. This will
// work and be efficient for power8 or later.
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/internal/obj/x86/evex.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func newEVEXSuffix() evexSuffix {
return evexSuffix{rounding: rcUnset}
}

// evexSuffixMap maps obj.X86suffix to it's decoded version.
// evexSuffixMap maps obj.X86suffix to its decoded version.
// Filled during init().
var evexSuffixMap [255]evexSuffix

Expand Down
2 changes: 1 addition & 1 deletion src/cmd/link/internal/ld/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ func (ctxt *Link) loadlib() {
//
// These are the symbols that begin with the prefix 'type.' and
// 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
// symbols to have entries in the symbol table.
func (ctxt *Link) mangleTypeSym() {
Expand Down
4 changes: 2 additions & 2 deletions src/cmd/vet/vet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,10 @@ func TestVetVerbose(t *testing.T) {
// this function will report an error.
// 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>.
// 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.
// 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) {
var errs []error
out := splitOutput(outStr, wantAuto)
Expand Down
2 changes: 1 addition & 1 deletion src/database/sql/sql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ func TestPoolExhaustOnCancel(t *testing.T) {
state := 0

// 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.
//
// Only allow the first batch of queries to finish once the
Expand Down
2 changes: 1 addition & 1 deletion src/net/http/transfer.go
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ func (b *body) Close() error {
// no trailer and closing the connection next.
// no point in reading to EOF.
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.
if lr, ok := b.src.(*io.LimitedReader); ok && lr.N > maxPostHandlerReadBytes {
// There was a declared Content-Length, and we have more bytes remaining
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/mheap.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
// spans in order to find a few completely free spans
// (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
// in a span, we could release these free spans
// at the end of GC and eliminate this entirely.
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/sys_linux_ppc64x.s
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ TEXT runtime·_sigtramp(SB),NOSPLIT,$64
TEXT runtime·cgoSigtramp(SB),NOSPLIT|NOFRAME,$0
// The stack unwinder, presumably written in C, may not be able to
// handle Go frame correctly. So, this function is NOFRAME, and we
// we save/restore LR manually.
// save/restore LR manually.
MOVD LR, R10

// We're coming from C code, initialize essential registers.
Expand Down
4 changes: 2 additions & 2 deletions test/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -1071,10 +1071,10 @@ func splitOutput(out string, wantAuto bool) []string {
// this function will report an error.
// 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>.
// 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.
// 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) {
defer func() {
if *verbose && err != nil {
Expand Down

0 comments on commit 04dc1b2

Please sign in to comment.