Skip to content

Commit

Permalink
all: fix easy-to-miss typos
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
agnivade authored and dsnet committed Aug 23, 2017
1 parent f6944c7 commit ea5e3bd
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/archive/tar/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/compile/internal/ssa/looprotate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/compile/internal/syntax/branches.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down
2 changes: 1 addition & 1 deletion src/cmd/internal/objabi/symkind.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
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 @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/link/internal/ld/link.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/database/sql/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
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 @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/encoding/asn1/asn1_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down
2 changes: 1 addition & 1 deletion src/internal/cpu/cpu.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/math/big/calibrate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/testing/testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)")
Expand Down

0 comments on commit ea5e3bd

Please sign in to comment.