]> Cypherpunks repositories - gostls13.git/commitdiff
all: fix misspellings
authorshawnps <shawnpsmith@gmail.com>
Sat, 7 Jan 2017 16:23:11 +0000 (08:23 -0800)
committerIan Lance Taylor <iant@golang.org>
Sat, 7 Jan 2017 16:53:25 +0000 (16:53 +0000)
Change-Id: I429637ca91f7db4144f17621de851a548dc1ce76
Reviewed-on: https://go-review.googlesource.com/34923
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

17 files changed:
src/bytes/buffer.go
src/cmd/compile/internal/gc/bexport.go
src/cmd/compile/internal/gc/sinit.go
src/cmd/compile/internal/gc/type.go
src/cmd/compile/internal/ssa/checkbce.go
src/cmd/compile/internal/ssa/config.go
src/cmd/compile/internal/ssa/gen/ARM64Ops.go
src/cmd/compile/internal/ssa/gen/ARMOps.go
src/cmd/compile/internal/ssa/gen/MIPS64Ops.go
src/cmd/compile/internal/ssa/gen/MIPSOps.go
src/cmd/compile/internal/ssa/gen/PPC64Ops.go
src/cmd/compile/internal/ssa/op.go
src/cmd/compile/internal/ssa/regalloc.go
src/database/sql/sql.go
src/path/filepath/symlink_windows.go
src/runtime/fastlog2.go
src/testing/sub_test.go

index 2ee3d738ef996551a004837899b94ba0771b67e9..196419dc3da5999ada51eda442a9d06ff8ae04f3 100644 (file)
@@ -23,7 +23,7 @@ type Buffer struct {
 
 // The readOp constants describe the last action performed on
 // the buffer, so that UnreadRune and UnreadByte can check for
-// invalid usage. opReadRuneX constants are choosen such that
+// invalid usage. opReadRuneX constants are chosen such that
 // converted to int they correspond to the rune size that was read.
 type readOp int
 
index 1da5b699a4f7f21d21e1ad8344c6de3144949df8..ffc541970865fcd236c401d84ac8f1a9d6c14496 100644 (file)
@@ -1000,7 +1000,7 @@ func parName(f *Field, numbered bool) string {
                Fatalf("invalid symbol name: %s", name)
        }
 
-       // Functions that can be inlined use numbered parameters so we can distingish them
+       // Functions that can be inlined use numbered parameters so we can distinguish them
        // from other names in their context after inlining (i.e., the parameter numbering
        // is a form of parameter rewriting). See issue 4326 for an example and test case.
        if forceObjFileStability || numbered {
index 89eec60216ea264eb766a55de6b4c076d7d10382..6b3c426ca3724b1a06fbbf008670af82bbb54c5b 100644 (file)
@@ -1197,7 +1197,7 @@ func getlit(lit *Node) int {
        return -1
 }
 
-// stataddr sets nam to the static address of n and reports whether it succeeeded.
+// stataddr sets nam to the static address of n and reports whether it succeeded.
 func stataddr(nam *Node, n *Node) bool {
        if n == nil {
                return false
index 29048f1a19c9de052c8a95497b9070bd88fb17c4..5f04f680c737ebc6972cb042961d371fed83d2c6 100644 (file)
@@ -213,7 +213,7 @@ func (t *Type) FuncType() *FuncType {
        return t.Extra.(*FuncType)
 }
 
-// InterMethType contains Type fields specific to interface method psuedo-types.
+// InterMethType contains Type fields specific to interface method pseudo-types.
 type InterMethType struct {
        Nname *Node
 }
index 820ea6e80991c01c0758e9e165d5232daa2b6463..3b15d5a125e9972ffb3b7565b8530d3f3d787839 100644 (file)
@@ -6,7 +6,7 @@ package ssa
 
 // checkbce prints all bounds checks that are present in the function.
 // Useful to find regressions. checkbce is only activated when with
-// corresponsing debug options, so it's off by default.
+// corresponding debug options, so it's off by default.
 // See test/checkbce.go
 func checkbce(f *Func) {
        if f.pass.debug <= 0 {
index 919386e88931d799a82fca516744dc59a6b24183..4931da8d0707dc9cddf94535637c9dad537220bf 100644 (file)
@@ -93,7 +93,7 @@ type Logger interface {
        // Warnl writes compiler messages in the form expected by "errorcheck" tests
        Warnl(line int32, fmt_ string, args ...interface{})
 
-       // Fowards the Debug flags from gc
+       // Forwards the Debug flags from gc
        Debug_checknil() bool
        Debug_wb() bool
 }
index dce61e3b8a1e8d65518f334814a4466d02d86bd4..e8d5be258218018c1a280eeb68a4639431589f9d 100644 (file)
@@ -12,7 +12,7 @@ import "strings"
 //  - Integer types live in the low portion of registers. Upper portions are junk.
 //  - Boolean types use the low-order byte of a register. 0=false, 1=true.
 //    Upper bytes are junk.
-//  - *const instructions may use a constant larger than the instuction can encode.
+//  - *const instructions may use a constant larger than the instruction can encode.
 //    In this case the assembler expands to multiple instructions and uses tmp
 //    register (R27).
 
index 5bf3c0091a16f68c5bb5a24a104d4ff58b8ad194..e296d0600d0ad13419576fc683876d31990f4cd0 100644 (file)
@@ -12,7 +12,7 @@ import "strings"
 //  - Integer types live in the low portion of registers. Upper portions are junk.
 //  - Boolean types use the low-order byte of a register. 0=false, 1=true.
 //    Upper bytes are junk.
-//  - *const instructions may use a constant larger than the instuction can encode.
+//  - *const instructions may use a constant larger than the instruction can encode.
 //    In this case the assembler expands to multiple instructions and uses tmp
 //    register (R11).
 
index d7d7fece28aac691602398388f69346ee7a9ac0c..020d6930d7c3b7998668fd60d2251592a7f52aab 100644 (file)
@@ -12,7 +12,7 @@ import "strings"
 //  - Integer types live in the low portion of registers. Upper portions are junk.
 //  - Boolean types use the low-order byte of a register. 0=false, 1=true.
 //    Upper bytes are junk.
-//  - *const instructions may use a constant larger than the instuction can encode.
+//  - *const instructions may use a constant larger than the instruction can encode.
 //    In this case the assembler expands to multiple instructions and uses tmp
 //    register (R23).
 
index c803c4951967b5fd19c29d0a7b8fc5c08ae888c9..78b961ffb2a8e854254fc629f2213e1fd6c6f6a4 100644 (file)
@@ -13,7 +13,7 @@ import "strings"
 //  - Boolean types use the low-order byte of a register. 0=false, 1=true.
 //    Upper bytes are junk.
 //  - Unused portions of AuxInt are filled by sign-extending the used portion.
-//  - *const instructions may use a constant larger than the instuction can encode.
+//  - *const instructions may use a constant larger than the instruction can encode.
 //    In this case the assembler expands to multiple instructions and uses tmp
 //    register (R23).
 
index d7a1363c0cf8bae135790bafdd2277f6e77d3eef..003479774a486baba8b7e502c599f13145157792 100644 (file)
@@ -12,7 +12,7 @@ import "strings"
 //  - Less-than-64-bit integer types live in the low portion of registers.
 //    For now, the upper portion is junk; sign/zero-extension might be optimized in the future, but not yet.
 //  - Boolean types are zero or 1; stored in a byte, but loaded with AMOVBZ so the upper bytes of a register are zero.
-//  - *const instructions may use a constant larger than the instuction can encode.
+//  - *const instructions may use a constant larger than the instruction can encode.
 //    In this case the assembler expands to multiple instructions and uses tmp
 //    register (R31).
 
index 315d7203d4293261b6d9ba5475701f677c38e72a..4c3164f2313f453414bb96609b6b652a2a2b65e5 100644 (file)
@@ -21,7 +21,7 @@ type opInfo struct {
        name              string
        reg               regInfo
        auxType           auxType
-       argLen            int32 // the number of arugments, -1 if variable length
+       argLen            int32 // the number of arguments, -1 if variable length
        asm               obj.As
        generic           bool // this is a generic (arch-independent) opcode
        rematerializeable bool // this op is rematerializeable
index 2b669823401f15df997fa9b38350a662586feaba..7bf778609ee487ccbd5d475ecd0580f28b8e3ed3 100644 (file)
@@ -759,7 +759,7 @@ func (s *regAllocState) regalloc(f *Func) {
                        liveSet.add(e.ID)
                }
                if v := b.Control; v != nil && s.values[v.ID].needReg {
-                       s.addUse(v.ID, int32(len(b.Values)), b.Line) // psuedo-use by control value
+                       s.addUse(v.ID, int32(len(b.Values)), b.Line) // pseudo-use by control value
                        liveSet.add(v.ID)
                }
                for i := len(b.Values) - 1; i >= 0; i-- {
index 58e927e0c44be8db3da99f79104216e52051601a..0fa7c34a13e3bb7ee209b9b01a33befe2f414e80 100644 (file)
@@ -2086,7 +2086,7 @@ func (rs *Rows) Next() bool {
                }
                // The driver is at the end of the current result set.
                // Test to see if there is another result set after the current one.
-               // Only close Rows if there is no futher result sets to read.
+               // Only close Rows if there is no further result sets to read.
                if !nextResultSet.HasNextResultSet() {
                        rs.Close()
                }
index bb05aabc924292e4d084700c11710300b831c9ef..f771fe3a8a342c371b40a3f2e6271c80ecbfc557 100644 (file)
@@ -47,7 +47,7 @@ func baseIsDotDot(path string) bool {
        return path[i+1:] == ".."
 }
 
-// toNorm returns the normalized path that is guranteed to be unique.
+// toNorm returns the normalized path that is guaranteed to be unique.
 // It should accept the following formats:
 //   * UNC paths                              (e.g \\server\share\foo\bar)
 //   * absolute paths                         (e.g C:\foo\bar)
index b22e8259add67fbd9a7ce2bf08fd8afc8aeaf852..5f3fb53423297be3356292429fee7543eaf284ed 100644 (file)
@@ -8,7 +8,7 @@ import "unsafe"
 
 // fastlog2 implements a fast approximation to the base 2 log of a
 // float64. This is used to compute a geometric distribution for heap
-// sampling, without introducing dependences into package math. This
+// sampling, without introducing dependencies into package math. This
 // uses a very rough approximation using the float64 exponent and the
 // first 25 bits of the mantissa. The top 5 bits of the mantissa are
 // used to load limits from a table of constants and the rest are used
@@ -29,5 +29,5 @@ func fastlog2(x float64) float64 {
 }
 
 // float64bits returns the IEEE 754 binary representation of f.
-// Taken from math.Float64bits to avoid dependences into package math.
+// Taken from math.Float64bits to avoid dependencies into package math.
 func float64bits(f float64) uint64 { return *(*uint64)(unsafe.Pointer(&f)) }
index 2a24aaacfd72a031deb98832f89fcf99d1c0d099..8d5d9206f03563633e457afceb37b035d861f2cc 100644 (file)
@@ -357,7 +357,7 @@ func TestTRun(t *T) {
                want := strings.TrimSpace(tc.output)
                re := makeRegexp(want)
                if ok, err := regexp.MatchString(re, got); !ok || err != nil {
-                       t.Errorf("%s:ouput:\ngot:\n%s\nwant:\n%s", tc.desc, got, want)
+                       t.Errorf("%s:output:\ngot:\n%s\nwant:\n%s", tc.desc, got, want)
                }
        }
 }
@@ -498,7 +498,7 @@ func TestBRun(t *T) {
                want := strings.TrimSpace(tc.output)
                re := makeRegexp(want)
                if ok, err := regexp.MatchString(re, got); !ok || err != nil {
-                       t.Errorf("%s:ouput:\ngot:\n%s\nwant:\n%s", tc.desc, got, want)
+                       t.Errorf("%s:output:\ngot:\n%s\nwant:\n%s", tc.desc, got, want)
                }
        }
 }