]> Cypherpunks repositories - gostls13.git/commitdiff
all: fix easy-to-miss typos
authorAgniva De Sarker <agnivade@yahoo.co.in>
Tue, 22 Aug 2017 10:11:50 +0000 (15:41 +0530)
committerJoe Tsai <thebrokentoaster@gmail.com>
Wed, 23 Aug 2017 03:07:12 +0000 (03:07 +0000)
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>

12 files changed:
src/archive/tar/writer.go
src/cmd/compile/internal/ssa/looprotate.go
src/cmd/compile/internal/syntax/branches.go
src/cmd/internal/objabi/symkind.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/link.go
src/database/sql/convert.go
src/database/sql/sql_test.go
src/encoding/asn1/asn1_test.go
src/internal/cpu/cpu.go
src/math/big/calibrate_test.go
src/testing/testing.go

index 0d68d4712997c915aa63ef259a75786d4827ecd7..c9237c832902b20723ee351c82dfd4a839a46fe0 100644 (file)
@@ -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 {
index c5b768264db3ab91eabb33db1b2d510fe9ac922c..d9cba9e9b02b0bb3a6f14a6ad125f13476484e1d 100644 (file)
@@ -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
index 5fecdd6551a4355118b4362c4bd04c43c1e4a1ae..2fd97a4a678a8902d06bb4c91e5bd1157ad5c9e2 100644 (file)
@@ -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}
 
index ac91824d1726b79c7f8f5542c6472e272536de2a..ea180d0bf862c64a3686282f029225f64a48b7fa 100644 (file)
@@ -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
index c7f14b3e04b4c6078781449dcff83eafafde36b2..3207bdb83761d3ee3f1a9db7c9539d0e8a6afe61 100644 (file)
@@ -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)
index 857957afb0df01e69f4bef38fdb147ba92c66044..3a9314ec4253ce1c1464ca77e93c729b9364d4f3 100644 (file)
@@ -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
index 4983181fe750b167b31021957db80ce1c5460c45..3c387fb25c1ab6e0f2f158daed04500967308983 100644 (file)
@@ -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))
index 644769442eb1bea980896dcffcaebb0b3eab48c5..bcf0887d0e561094bff7a79a940751a1de34f4f0 100644 (file)
@@ -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"
index c9eda4069dc99f49d56268b5b259ed360d2e5e7e..355ff8c41ca4afcd5089f10a594810acd061b6b5 100644 (file)
@@ -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{}
index 6a8e23d4257a2e61410a5d9279f5a63433d2e0ce..3090adbbe4e41af4db5da7193f12329ba454de7d 100644 (file)
@@ -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
index 11ce064c156527c8139982e88492e16f34c57e27..2b96e74a6586fe1ca2afce1f6b1cedaebf80c81a 100644 (file)
@@ -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)
index 93297b2dca432f6c73f87164d8901d15bad00791..579a30ca1e999b33d13a1844303ccff7bcb808c4 100644 (file)
@@ -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)")