mirror of
https://github.com/golang/go
synced 2024-11-19 16:24:45 -07:00
all: fix easy-to-miss typos
Using the wonderful https://github.com/client9/misspell tool. Change-Id: Icdbc75a5559854f4a7a61b5271bcc7e3f99a1a24 Reviewed-on: https://go-review.googlesource.com/57851 Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com> Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
f6944c780f
commit
ea5e3bd2a1
@ -37,7 +37,7 @@ func NewWriter(w io.Writer) *Writer { return &Writer{w: w} }
|
||||
// Flush finishes writing the current file's block padding.
|
||||
// The current file must be fully written before Flush can be called.
|
||||
//
|
||||
// Deprecated: This is unecessary as the next call to WriteHeader or Close
|
||||
// Deprecated: This is unnecessary as the next call to WriteHeader or Close
|
||||
// will implicitly flush out the file's padding.
|
||||
func (tw *Writer) Flush() error {
|
||||
if tw.err != nil {
|
||||
|
@ -62,7 +62,7 @@ func loopRotate(f *Func) {
|
||||
break
|
||||
}
|
||||
nextb := f.Blocks[nextIdx]
|
||||
if nextb == p { // original loop precedessor is next
|
||||
if nextb == p { // original loop predecessor is next
|
||||
break
|
||||
}
|
||||
if loopnest.b2l[nextb.ID] != loop { // about to leave loop
|
||||
|
@ -131,7 +131,7 @@ type targets struct {
|
||||
// blockBranches processes a block's body starting at start and returns the
|
||||
// list of unresolved (forward) gotos. parent is the immediately enclosing
|
||||
// block (or nil), ctxt provides information about the enclosing statements,
|
||||
// and lstmt is the labeled statement asociated with this block, or nil.
|
||||
// and lstmt is the labeled statement associated with this block, or nil.
|
||||
func (ls *labelScope) blockBranches(parent *block, ctxt targets, lstmt *LabeledStmt, start src.Pos, body []Stmt) []*BranchStmt {
|
||||
b := &block{parent: parent, start: start, lstmt: lstmt}
|
||||
|
||||
|
@ -52,7 +52,7 @@ const (
|
||||
SBSS
|
||||
// Statically data that is initially all 0s and does not contain pointers
|
||||
SNOPTRBSS
|
||||
// Thread-local data that is initally all 0s
|
||||
// Thread-local data that is initially all 0s
|
||||
STLSBSS
|
||||
// Debugging data
|
||||
SDWARFINFO
|
||||
|
@ -746,7 +746,7 @@ func genhash(ctxt *Link, lib *Library) {
|
||||
// To compute the hash of a package, we hash the first line of
|
||||
// __.PKGDEF (which contains the toolchain version and any
|
||||
// GOEXPERIMENT flags) and the export data (which is between
|
||||
// the first two occurences of "\n$$").
|
||||
// the first two occurrences of "\n$$").
|
||||
|
||||
pkgDefBytes := make([]byte, atolwhex(arhdr.size))
|
||||
_, err = io.ReadFull(f, pkgDefBytes)
|
||||
|
@ -129,7 +129,7 @@ const (
|
||||
// consulted to avoid bugs where a symbol is put on a list twice.
|
||||
AttrOnList
|
||||
// AttrLocal marks symbols that are only visible within the module
|
||||
// (exectuable or shared library) being linked. Only relevant when
|
||||
// (executable or shared library) being linked. Only relevant when
|
||||
// dynamically linking Go code.
|
||||
AttrLocal
|
||||
// AttrReflectMethod marks certain methods from the reflect package that
|
||||
|
@ -204,7 +204,7 @@ func driverArgs(ci driver.Conn, ds *driverStmt, args []interface{}) ([]driver.Na
|
||||
}
|
||||
}
|
||||
|
||||
// Check the length of arguments after convertion to allow for omitted
|
||||
// Check the length of arguments after conversion to allow for omitted
|
||||
// arguments.
|
||||
if want != -1 && len(nvargs) != want {
|
||||
return nil, fmt.Errorf("sql: expected %d arguments, got %d", want, len(nvargs))
|
||||
|
@ -3390,7 +3390,7 @@ func (c *nvcConn) CheckNamedValue(nv *driver.NamedValue) error {
|
||||
case Out:
|
||||
switch ov := v.Dest.(type) {
|
||||
default:
|
||||
return errors.New("unkown NameValueCheck OUTPUT type")
|
||||
return errors.New("unknown NameValueCheck OUTPUT type")
|
||||
case *string:
|
||||
*ov = "from-server"
|
||||
nv.Value = "OUT:*string"
|
||||
|
@ -1015,7 +1015,7 @@ func TestNull(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if !bytes.Equal(NullBytes, marshaled) {
|
||||
t.Errorf("Expected Marshal of NullRawValue to yeild %x, got %x", NullBytes, marshaled)
|
||||
t.Errorf("Expected Marshal of NullRawValue to yield %x, got %x", NullBytes, marshaled)
|
||||
}
|
||||
|
||||
unmarshaled := RawValue{}
|
||||
|
@ -3,7 +3,7 @@
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// Package cpu implements processor feature detection
|
||||
// used by the Go standard libary.
|
||||
// used by the Go standard library.
|
||||
package cpu
|
||||
|
||||
var X86 x86
|
||||
|
@ -32,7 +32,7 @@ func TestCalibrate(t *testing.T) {
|
||||
if *calibrate {
|
||||
computeKaratsubaThresholds()
|
||||
|
||||
// compute basicSqrThreshold where overhead becomes neglible
|
||||
// compute basicSqrThreshold where overhead becomes negligible
|
||||
minSqr := computeSqrThreshold(10, 30, 1, 3)
|
||||
// compute karatsubaSqrThreshold where karatsuba is faster
|
||||
maxSqr := computeSqrThreshold(300, 500, 10, 3)
|
||||
|
@ -252,7 +252,7 @@ var (
|
||||
chatty = flag.Bool("test.v", false, "verbose: print additional output")
|
||||
count = flag.Uint("test.count", 1, "run tests and benchmarks `n` times")
|
||||
coverProfile = flag.String("test.coverprofile", "", "write a coverage profile to `file`")
|
||||
matchList = flag.String("test.list", "", "list tests, examples, and benchmarch maching `regexp` then exit")
|
||||
matchList = flag.String("test.list", "", "list tests, examples, and benchmarks matching `regexp` then exit")
|
||||
match = flag.String("test.run", "", "run only tests and examples matching `regexp`")
|
||||
memProfile = flag.String("test.memprofile", "", "write a memory profile to `file`")
|
||||
memProfileRate = flag.Int("test.memprofilerate", 0, "set memory profiling `rate` (see runtime.MemProfileRate)")
|
||||
|
Loading…
Reference in New Issue
Block a user