Commit ea5e3bd2 authored by Agniva De Sarker's avatar Agniva De Sarker Committed by Joe Tsai

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/57851Reviewed-by: 's avatarJoe Tsai <thebrokentoaster@gmail.com>
Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent f6944c78
...@@ -37,7 +37,7 @@ func NewWriter(w io.Writer) *Writer { return &Writer{w: w} } ...@@ -37,7 +37,7 @@ func NewWriter(w io.Writer) *Writer { return &Writer{w: w} }
// Flush finishes writing the current file's block padding. // Flush finishes writing the current file's block padding.
// The current file must be fully written before Flush can be called. // 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. // will implicitly flush out the file's padding.
func (tw *Writer) Flush() error { func (tw *Writer) Flush() error {
if tw.err != nil { if tw.err != nil {
......
...@@ -62,7 +62,7 @@ func loopRotate(f *Func) { ...@@ -62,7 +62,7 @@ func loopRotate(f *Func) {
break break
} }
nextb := f.Blocks[nextIdx] nextb := f.Blocks[nextIdx]
if nextb == p { // original loop precedessor is next if nextb == p { // original loop predecessor is next
break break
} }
if loopnest.b2l[nextb.ID] != loop { // about to leave loop if loopnest.b2l[nextb.ID] != loop { // about to leave loop
......
...@@ -131,7 +131,7 @@ type targets struct { ...@@ -131,7 +131,7 @@ type targets struct {
// blockBranches processes a block's body starting at start and returns the // blockBranches processes a block's body starting at start and returns the
// list of unresolved (forward) gotos. parent is the immediately enclosing // list of unresolved (forward) gotos. parent is the immediately enclosing
// block (or nil), ctxt provides information about the enclosing statements, // 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 { func (ls *labelScope) blockBranches(parent *block, ctxt targets, lstmt *LabeledStmt, start src.Pos, body []Stmt) []*BranchStmt {
b := &block{parent: parent, start: start, lstmt: lstmt} b := &block{parent: parent, start: start, lstmt: lstmt}
......
...@@ -52,7 +52,7 @@ const ( ...@@ -52,7 +52,7 @@ const (
SBSS SBSS
// Statically data that is initially all 0s and does not contain pointers // Statically data that is initially all 0s and does not contain pointers
SNOPTRBSS SNOPTRBSS
// Thread-local data that is initally all 0s // Thread-local data that is initially all 0s
STLSBSS STLSBSS
// Debugging data // Debugging data
SDWARFINFO SDWARFINFO
......
...@@ -746,7 +746,7 @@ func genhash(ctxt *Link, lib *Library) { ...@@ -746,7 +746,7 @@ func genhash(ctxt *Link, lib *Library) {
// To compute the hash of a package, we hash the first line of // To compute the hash of a package, we hash the first line of
// __.PKGDEF (which contains the toolchain version and any // __.PKGDEF (which contains the toolchain version and any
// GOEXPERIMENT flags) and the export data (which is between // 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)) pkgDefBytes := make([]byte, atolwhex(arhdr.size))
_, err = io.ReadFull(f, pkgDefBytes) _, err = io.ReadFull(f, pkgDefBytes)
......
...@@ -129,7 +129,7 @@ const ( ...@@ -129,7 +129,7 @@ const (
// consulted to avoid bugs where a symbol is put on a list twice. // consulted to avoid bugs where a symbol is put on a list twice.
AttrOnList AttrOnList
// AttrLocal marks symbols that are only visible within the module // 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. // dynamically linking Go code.
AttrLocal AttrLocal
// AttrReflectMethod marks certain methods from the reflect package that // AttrReflectMethod marks certain methods from the reflect package that
......
...@@ -204,7 +204,7 @@ func driverArgs(ci driver.Conn, ds *driverStmt, args []interface{}) ([]driver.Na ...@@ -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. // arguments.
if want != -1 && len(nvargs) != want { if want != -1 && len(nvargs) != want {
return nil, fmt.Errorf("sql: expected %d arguments, got %d", want, len(nvargs)) 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 { ...@@ -3390,7 +3390,7 @@ func (c *nvcConn) CheckNamedValue(nv *driver.NamedValue) error {
case Out: case Out:
switch ov := v.Dest.(type) { switch ov := v.Dest.(type) {
default: default:
return errors.New("unkown NameValueCheck OUTPUT type") return errors.New("unknown NameValueCheck OUTPUT type")
case *string: case *string:
*ov = "from-server" *ov = "from-server"
nv.Value = "OUT:*string" nv.Value = "OUT:*string"
......
...@@ -1015,7 +1015,7 @@ func TestNull(t *testing.T) { ...@@ -1015,7 +1015,7 @@ func TestNull(t *testing.T) {
t.Fatal(err) t.Fatal(err)
} }
if !bytes.Equal(NullBytes, marshaled) { 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{} unmarshaled := RawValue{}
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// Package cpu implements processor feature detection // Package cpu implements processor feature detection
// used by the Go standard libary. // used by the Go standard library.
package cpu package cpu
var X86 x86 var X86 x86
......
...@@ -32,7 +32,7 @@ func TestCalibrate(t *testing.T) { ...@@ -32,7 +32,7 @@ func TestCalibrate(t *testing.T) {
if *calibrate { if *calibrate {
computeKaratsubaThresholds() computeKaratsubaThresholds()
// compute basicSqrThreshold where overhead becomes neglible // compute basicSqrThreshold where overhead becomes negligible
minSqr := computeSqrThreshold(10, 30, 1, 3) minSqr := computeSqrThreshold(10, 30, 1, 3)
// compute karatsubaSqrThreshold where karatsuba is faster // compute karatsubaSqrThreshold where karatsuba is faster
maxSqr := computeSqrThreshold(300, 500, 10, 3) maxSqr := computeSqrThreshold(300, 500, 10, 3)
......
...@@ -252,7 +252,7 @@ var ( ...@@ -252,7 +252,7 @@ var (
chatty = flag.Bool("test.v", false, "verbose: print additional output") chatty = flag.Bool("test.v", false, "verbose: print additional output")
count = flag.Uint("test.count", 1, "run tests and benchmarks `n` times") count = flag.Uint("test.count", 1, "run tests and benchmarks `n` times")
coverProfile = flag.String("test.coverprofile", "", "write a coverage profile to `file`") 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`") match = flag.String("test.run", "", "run only tests and examples matching `regexp`")
memProfile = flag.String("test.memprofile", "", "write a memory profile to `file`") memProfile = flag.String("test.memprofile", "", "write a memory profile to `file`")
memProfileRate = flag.Int("test.memprofilerate", 0, "set memory profiling `rate` (see runtime.MemProfileRate)") memProfileRate = flag.Int("test.memprofilerate", 0, "set memory profiling `rate` (see runtime.MemProfileRate)")
......
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