]> Cypherpunks repositories - gostls13.git/commitdiff
all: fix spelling mistakes
authorEric Engestrom <eric@engestrom.ch>
Sun, 3 Apr 2016 11:43:27 +0000 (12:43 +0100)
committerIan Lance Taylor <iant@golang.org>
Sun, 3 Apr 2016 17:03:15 +0000 (17:03 +0000)
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Change-Id: I91873aaebf79bdf1c00d38aacc1a1fb8d79656a7
Reviewed-on: https://go-review.googlesource.com/21433
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

24 files changed:
misc/cgo/testcshared/test.bash
misc/cgo/testshared/shared_test.go
src/cmd/compile/internal/gc/cgen.go
src/cmd/compile/internal/gc/const.go
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/gc/swt.go
src/cmd/compile/internal/gc/walk.go
src/cmd/compile/internal/ssa/dom.go
src/cmd/compile/internal/ssa/dom_test.go
src/cmd/compile/internal/ssa/loopbce.go
src/cmd/compile/internal/ssa/nilcheck_test.go
src/cmd/compile/internal/ssa/prove.go
src/cmd/internal/goobj/read.go
src/cmd/internal/obj/arm64/obj7.go
src/cmd/internal/obj/mips/obj0.go
src/cmd/internal/obj/ppc64/asm9.go
src/cmd/internal/obj/ppc64/obj9.go
src/cmd/internal/obj/s390x/objz.go
src/cmd/link/internal/ld/deadcode.go
src/crypto/elliptic/p256_amd64.go
src/debug/elf/elf.go
src/runtime/signal_solaris.go
src/vendor/golang.org/x/net/http2/hpack/hpack.go
test/ken/embed.go

index c5c49a10e1865487e80d4f114b8f86413798d4b7..e4bb7d33f9dc54d0543adee998c49ddd11a92d25 100755 (executable)
@@ -18,7 +18,7 @@ goos=$(go env GOOS)
 goarch=$(go env GOARCH)
 goroot=$(go env GOROOT)
 if [ ! -d "$goroot" ]; then
-       echo 'misc/cgo/testcshared/test.bash cannnot find GOROOT' 1>&2
+       echo 'misc/cgo/testcshared/test.bash cannot find GOROOT' 1>&2
        echo '$GOROOT:' "$GOROOT" 1>&2
        echo 'go env GOROOT:' "$goroot" 1>&2
        exit 1
index 30b00d593013af251b17958b736f00714015f329..abe831a324f2bbcf5a7b2be9ccdec9b2edcb9a20 100644 (file)
@@ -732,7 +732,7 @@ func TestABIChecking(t *testing.T) {
        // If we make an ABI-breaking change to dep and rebuild libp.so but not exe,
        // exe will abort with a complaint on startup.
        // This assumes adding an exported function breaks ABI, which is not true in
-       // some senses but suffices for the narrow definition of ABI compatiblity the
+       // some senses but suffices for the narrow definition of ABI compatibility the
        // toolchain uses today.
        resetFileStamps()
        appendFile("src/dep/dep.go", "func ABIBreak() {}\n")
index a1904404e9e17396060ec44def729e77aca179f2..4b2bf456b1a9aca8533575d206da45082ab1d9a1 100644 (file)
@@ -116,7 +116,7 @@ func cgen_wb(n, res *Node, wb bool) {
                                return
                        }
 
-                       f := true // gen thru register
+                       f := true // gen through register
                        switch n.Op {
                        case OLITERAL:
                                if Smallintconst(n) {
index 95dc898924cbc4ddae559625d437687dba9d7fec..5c9a67c8b50263b047f66efda020281d8eac5f60 100644 (file)
@@ -10,7 +10,7 @@ import (
        "strings"
 )
 
-// IntLiteral returns the Node's literal value as an interger.
+// IntLiteral returns the Node's literal value as an integer.
 func (n *Node) IntLiteral() (x int64, ok bool) {
        switch {
        case n == nil:
index 6fb6c3926c68497e495f2adf3541d1e7d42ec5c5..bfac175975736c06a32ea4f59bf10ceed709ea39 100644 (file)
@@ -4128,7 +4128,7 @@ func fieldIdx(n *Node) int {
        }
        panic(fmt.Sprintf("can't find field in expr %s\n", n))
 
-       // TODO: keep the result of this fucntion somewhere in the ODOT Node
+       // TODO: keep the result of this function somewhere in the ODOT Node
        // so we don't have to recompute it each time we need it.
 }
 
index cbf284c8f19bbf67836d08bc13fccfdd9f3e46a5..3b08b13508d4a812cfa831a00c02b115a2d58f5a 100644 (file)
@@ -389,7 +389,7 @@ func casebody(sw *Node, typeswvar *Node) {
                }
                stat = append(stat, n.Nbody.Slice()...)
 
-               // botch - shouldn't fall thru declaration
+               // botch - shouldn't fall through declaration
                last := stat[len(stat)-1]
                if last.Xoffset == n.Xoffset && last.Op == OXFALL {
                        if typeswvar != nil {
index 77e6c4e1c0719ab370e4a9d91b3fcc3f62f3b07d..b7edae5af48b8c32554ff39657313ae6bfbdceff 100644 (file)
@@ -1825,7 +1825,7 @@ func ascompatte(op Op, call *Node, isddd bool, nl *Type, lr []*Node, fp int, ini
                        // special case --
                        // only if we are assigning a single ddd
                        // argument to a ddd parameter then it is
-                       // passed thru unencapsulated
+                       // passed through unencapsulated
                        if r != nil && len(lr) <= 1 && isddd && Eqtype(l.Type, r.Type) {
                                a := Nod(OAS, nodarg(l, fp), r)
                                a = convas(a, init)
index d4dccda05881474ebb5eb51107fafb9f5c552c8c..0fffcdc2af2c0ed14cc8aa56454a3a80516765a1 100644 (file)
@@ -268,7 +268,7 @@ func (f *Func) dominatorsLT(entries []*Block, predFn linkedBlocks, succFn linked
                idom[v] = fromID[bucket[0]]
        }
 
-       // Step 4. Explictly define the immediate dominator of each vertex,
+       // Step 4. Explicitly define the immediate dominator of each vertex,
        // carrying out the computation vertex by vertex in increasing order by
        // number.
        for i := 1; i < maxBlockID-1; i++ {
index 0328655b6add7ac7131d504dc28fd300348a8cb7..9741edf3314aaf2bfb5fbb827f79e430e1fb52a1 100644 (file)
@@ -67,7 +67,7 @@ func genFwdBack(size int) []bloc {
        return blocs
 }
 
-// genManyPred creates an array of blocks where 1/3rd have a sucessor of the
+// genManyPred creates an array of blocks where 1/3rd have a successor of the
 // first block, 1/3rd the last block, and the remaining third are plain.
 func genManyPred(size int) []bloc {
        var blocs []bloc
@@ -80,7 +80,7 @@ func genManyPred(size int) []bloc {
        )
 
        // We want predecessor lists to be long, so 2/3rds of the blocks have a
-       // sucessor of the first or last block.
+       // successor of the first or last block.
        for i := 0; i < size; i++ {
                switch i % 3 {
                case 0:
index 7fbb48a7fc1b45ce2401f52d9ba67ba6b65ac46e..17486ac49f3c2d16886c4d8ca1e0889830d45515 100644 (file)
@@ -122,7 +122,7 @@ nextb:
                        max = w
                }
 
-               // We can only guarantee that the loops runs withing limits of induction variable
+               // We can only guarantee that the loops runs within limits of induction variable
                // if the increment is 1 or when the limits are constants.
                if inc.AuxInt != 1 {
                        ok := false
index 2d1dbc6f3ea9f5d51d632b9edee8a145a0ce21dc..d1f38b6951e797be66c049094d33ac67e885bdbc 100644 (file)
@@ -97,7 +97,7 @@ func TestNilcheckSimple(t *testing.T) {
        }
 }
 
-// TestNilcheckDomOrder ensures that the nil check elimination isn't dependant
+// TestNilcheckDomOrder ensures that the nil check elimination isn't dependent
 // on the order of the dominees.
 func TestNilcheckDomOrder(t *testing.T) {
        ptrType := &TypeImpl{Size_: 8, Ptr: true, Name: "testptr"} // dummy for testing
index 2bda780d0267382e8dbdc7e6b2edd0084165c98c..a12a99626365ee9ffbbf9583ff435f14a969c4c2 100644 (file)
@@ -44,7 +44,7 @@ const (
 
 // domain represents the domain of a variable pair in which a set
 // of relations is known.  For example, relations learned for unsigned
-// pairs cannot be transfered to signed pairs because the same bit
+// pairs cannot be transferred to signed pairs because the same bit
 // representation can mean something else.
 type domain uint
 
index d64f4cbce198e67b06a16587cc64d59c05ff0218..54346613848b2876b52a729581dc711b77351b13 100644 (file)
@@ -217,7 +217,7 @@ type FuncData struct {
 type Package struct {
        ImportPath string   // import path denoting this package
        Imports    []string // packages imported by this package
-       SymRefs    []SymID  // list of symbol names and versions refered to by this pack
+       SymRefs    []SymID  // list of symbol names and versions referred to by this pack
        Syms       []*Sym   // symbols defined by this package
        MaxVersion int      // maximum Version in any SymID in Syms
 }
index e372ac8a0017fd51628dc77acd97e6788b0f6df2..b3de44c029674c513f83fbc0b3a0c82e94fbc2da 100644 (file)
@@ -510,7 +510,7 @@ loop:
                                r = ctxt.NewProg()
                                *r = *p
                                if !(r.Mark&FOLL != 0) {
-                                       fmt.Printf("cant happen 1\n")
+                                       fmt.Printf("can't happen 1\n")
                                }
                                r.Mark |= FOLL
                                if p != q {
@@ -536,7 +536,7 @@ loop:
                                        xfol(ctxt, r.Link, last)
                                }
                                if !(r.Pcond.Mark&FOLL != 0) {
-                                       fmt.Printf("cant happen 2\n")
+                                       fmt.Printf("can't happen 2\n")
                                }
                                return
                        }
index 2ea5aa261d47b072a9c10f08cb0d2cf6e3b2cef1..ca7d4465c9b72e519a57e4f79dae490a28511321 100644 (file)
@@ -1229,7 +1229,7 @@ func markregused(ctxt *obj.Link, s *Sch) {
                        s.used.ireg |= 1 << uint(c-REG_R0)
                }
        }
-       s.set.ireg &^= (1 << (REGZERO - REG_R0)) /* R0 cant be set */
+       s.set.ireg &^= (1 << (REGZERO - REG_R0)) /* R0 can't be set */
 }
 
 /*
@@ -1400,7 +1400,7 @@ loop:
                                r = ctxt.NewProg()
                                *r = *p
                                if r.Mark&FOLL == 0 {
-                                       fmt.Printf("cant happen 1\n")
+                                       fmt.Printf("can't happen 1\n")
                                }
                                r.Mark |= FOLL
                                if p != q {
@@ -1425,7 +1425,7 @@ loop:
                                        xfol(ctxt, r.Link, last)
                                }
                                if r.Pcond.Mark&FOLL == 0 {
-                                       fmt.Printf("cant happen 2\n")
+                                       fmt.Printf("can't happen 2\n")
                                }
                                return
                        }
index 5010873ef780401811ba306fa33c70dc203ab0dd..0497d3b67892fee3e227437e4c5ab86aa4de6659 100644 (file)
@@ -1906,7 +1906,7 @@ func asmout(ctxt *obj.Link, p *obj.Prog, o *Optab, out []uint32) {
 
        case 22: /* add $lcon,r1,r2 ==> cau+or+add */ /* could do add/sub more efficiently */
                if p.To.Reg == REGTMP || p.Reg == REGTMP {
-                       ctxt.Diag("cant synthesize large constant\n%v", p)
+                       ctxt.Diag("can't synthesize large constant\n%v", p)
                }
                d := vregoff(ctxt, &p.From)
                o1 = loadu32(REGTMP, d)
@@ -1924,7 +1924,7 @@ func asmout(ctxt *obj.Link, p *obj.Prog, o *Optab, out []uint32) {
 
        case 23: /* and $lcon,r1,r2 ==> cau+or+and */ /* masks could be done using rlnm etc. */
                if p.To.Reg == REGTMP || p.Reg == REGTMP {
-                       ctxt.Diag("cant synthesize large constant\n%v", p)
+                       ctxt.Diag("can't synthesize large constant\n%v", p)
                }
                d := vregoff(ctxt, &p.From)
                o1 = loadu32(REGTMP, d)
index 445cca1924643e2184cc0a60d75c25c32c320764..483df3a2b3799eeb41a3c2dc66988146f312389a 100644 (file)
@@ -1115,7 +1115,7 @@ loop:
                                r = ctxt.NewProg()
                                *r = *p
                                if r.Mark&FOLL == 0 {
-                                       fmt.Printf("cant happen 1\n")
+                                       fmt.Printf("can't happen 1\n")
                                }
                                r.Mark |= FOLL
                                if p != q {
@@ -1137,7 +1137,7 @@ loop:
                                        xfol(ctxt, r.Link, last)
                                }
                                if r.Pcond.Mark&FOLL == 0 {
-                                       fmt.Printf("cant happen 2\n")
+                                       fmt.Printf("can't happen 2\n")
                                }
                                return
                        }
index 8b8edb520a2957e399394ee7e84f070a56f8e457..239deec6a1a50a5ed1b67117b3dbb067461ec5ea 100644 (file)
@@ -916,7 +916,7 @@ func xfol(ctxt *obj.Link, p *obj.Prog, last **obj.Prog) {
                                        r = ctxt.NewProg()
                                        *r = *p
                                        if r.Mark&FOLL == 0 {
-                                               fmt.Printf("cant happen 1\n")
+                                               fmt.Printf("can't happen 1\n")
                                        }
                                        r.Mark |= FOLL
                                        if p != q {
@@ -942,7 +942,7 @@ func xfol(ctxt *obj.Link, p *obj.Prog, last **obj.Prog) {
                                                xfol(ctxt, r.Link, last)
                                        }
                                        if r.Pcond.Mark&FOLL == 0 {
-                                               fmt.Printf("cant happen 2\n")
+                                               fmt.Printf("can't happen 2\n")
                                        }
                                        return
                                }
index e1badc2a48c7f91924fc1755803785afb4d74e25..56c4370bcc3cbe6bf4ed219c9149acc22336170b 100644 (file)
@@ -14,7 +14,7 @@ import (
 // deadcode marks all reachable symbols.
 //
 // The basis of the dead code elimination is a flood fill of symbols,
-// following their relocations, begining at INITENTRY.
+// following their relocations, beginning at INITENTRY.
 //
 // This flood fill is wrapped in logic for pruning unused methods.
 // All methods are mentioned by relocations on their receiver's *rtype.
index 586cd10c4f675535f3d5100aa59c39741dd0e058..e96933e0c5566723238bee11ce4672d6b877948f 100644 (file)
@@ -66,7 +66,7 @@ func p256NegCond(val []uint64, cond int)
 // if cond == 0 res <- b; else res <- a
 func p256MovCond(res, a, b []uint64, cond int)
 
-// Endianess swap
+// Endianness swap
 func p256BigToLittle(res []uint64, in []byte)
 func p256LittleToBig(res []byte, in []uint64)
 
index d30e60afce6808504571e330e96442d803192211..af881c24950637fe89717c8039daaf685114c48f 100644 (file)
@@ -1285,7 +1285,7 @@ const (
        R_MIPS_LITERAL       R_MIPS = 8  /* Reference to literal section  */
        R_MIPS_GOT16         R_MIPS = 9  /* Reference to global offset table */
        R_MIPS_PC16          R_MIPS = 10 /* 16 bit PC relative reference */
-       R_MIPS_CALL16        R_MIPS = 11 /* 16 bit call thru glbl offset tbl */
+       R_MIPS_CALL16        R_MIPS = 11 /* 16 bit call through glbl offset tbl */
        R_MIPS_GPREL32       R_MIPS = 12
        R_MIPS_SHIFT5        R_MIPS = 16
        R_MIPS_SHIFT6        R_MIPS = 17
index 2cab5b823902b4aec0c25627e6ca60f660f52d60..a86f7bf6b423eb37d81ba54249683dc243346313 100644 (file)
@@ -32,7 +32,7 @@ var sigtable = [...]sigTabT{
        /* 19 */ {_SigNotify, "SIGPWR: power-fail restart"},
        /* 20 */ {_SigNotify, "SIGWINCH: window size change"},
        /* 21 */ {_SigNotify, "SIGURG: urgent socket condition"},
-       /* 22 */ {_SigNotify, "SIGPOLL: pollable event occured"},
+       /* 22 */ {_SigNotify, "SIGPOLL: pollable event occurred"},
        /* 23 */ {_SigNotify + _SigDefault, "SIGSTOP: stop (cannot be caught or ignored)"},
        /* 24 */ {_SigNotify + _SigDefault, "SIGTSTP: user stop requested from tty"},
        /* 25 */ {_SigNotify + _SigDefault, "SIGCONT: stopped process has been continued"},
index dcf257afa41354920f8b9f21a5e99295c13d0cb4..8aa197ad678d3ba8d627644a3cf91d8948c44a20 100644 (file)
@@ -43,7 +43,7 @@ type HeaderField struct {
 
 // IsPseudo reports whether the header field is an http2 pseudo header.
 // That is, it reports whether it starts with a colon.
-// It is not otherwise guaranteed to be a valid psuedo header field,
+// It is not otherwise guaranteed to be a valid pseudo header field,
 // though.
 func (hf HeaderField) IsPseudo() bool {
        return len(hf.Name) != 0 && hf.Name[0] == ':'
index 9b35c56acfd4deed50375ee0840ce042d65a82f3..f7ca0665e26f87f896be328f5c08737c3b16c317 100644 (file)
@@ -253,7 +253,7 @@ func main() {
                panic("fail")
        }
 
-       // run it thru an interface
+       // run it through an interface
        i = s
        s = i.(*S)