]> Cypherpunks repositories - gostls13.git/commitdiff
all: fix misspellings
authorShawn Smith <shawnpsmith@gmail.com>
Tue, 20 Feb 2018 20:50:20 +0000 (20:50 +0000)
committerAndrew Bonventre <andybons@golang.org>
Tue, 20 Feb 2018 21:02:58 +0000 (21:02 +0000)
GitHub-Last-Rev: 468df242d07419c228656985702325aa78952d99
GitHub-Pull-Request: golang/go#23935
Change-Id: If751ce3ffa3a4d5e00a3138211383d12cb6b23fc
Reviewed-on: https://go-review.googlesource.com/95577
Run-TryBot: Andrew Bonventre <andybons@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Andrew Bonventre <andybons@golang.org>
14 files changed:
src/cmd/asm/internal/arch/arm64.go
src/cmd/asm/internal/asm/parse.go
src/cmd/compile/internal/gc/testdata/flowgraph_generator1.go
src/cmd/compile/internal/ssa/gen/rulegen.go
src/cmd/compile/internal/ssa/loopreschedchecks.go
src/cmd/internal/obj/arm64/doc.go
src/cmd/link/internal/loadelf/ldelf.go
src/cmd/link/internal/sym/attribute.go
src/crypto/elliptic/elliptic_test.go
src/crypto/x509/verify.go
src/database/sql/sql_test.go
src/html/template/escape_test.go
src/image/gif/reader.go
src/math/big/int.go

index 63664d663c1ce9b44e56dfc7fa02cc8caa6db118..524a503472a700d6fea7fd04a54bda3eea80261c 100644 (file)
@@ -120,7 +120,7 @@ func arm64RegisterNumber(name string, n int16) (int16, bool) {
        return 0, false
 }
 
-// ARM64RegisterExtension parses an ARM64 register with extension or arrangment.
+// ARM64RegisterExtension parses an ARM64 register with extension or arrangement.
 func ARM64RegisterExtension(a *obj.Addr, ext string, reg, num int16, isAmount, isIndex bool) error {
        rm := uint32(reg)
        if isAmount {
@@ -222,7 +222,7 @@ func ARM64RegisterExtension(a *obj.Addr, ext string, reg, num int16, isAmount, i
        return nil
 }
 
-// ARM64RegisterArrangement parses an ARM64 vector register arrangment.
+// ARM64RegisterArrangement parses an ARM64 vector register arrangement.
 func ARM64RegisterArrangement(reg int16, name, arng string) (int64, error) {
        var curQ, curSize uint16
        if name[0] != 'V' {
index 1d5d07344ddacc037295940d1a6bd2ad027a6acb..5a6a7b2db9d157f217e1330e633fe192e4b1b824 100644 (file)
@@ -591,7 +591,7 @@ func (p *Parser) registerShift(name string, prefix rune) int64 {
        }
 }
 
-// registerExtension parses a register with extension or arrangment.
+// registerExtension parses a register with extension or arrangement.
 // There is known to be a register (current token) and an extension operator (peeked token).
 func (p *Parser) registerExtension(a *obj.Addr, name string, prefix rune) {
        if prefix != 0 {
index 48b05f7491859d4c003428378d6a84f27a40db2c..ad22601f43b481f7fdf84936e88d06ebbc98a5e7 100644 (file)
@@ -30,7 +30,7 @@ import (
 // of the 2-to-the-(J-1) serial numbers.
 
 // For each generated function a compact summary is also
-// created so that the generated funtion can be simulated
+// created so that the generated function can be simulated
 // with a simple interpreter to sanity check the behavior of
 // the compiled code.
 
index 27233c6889ec836bbae5e0a1b45ba7265cc2d160..cc81e24ddead1db6bc03209f67330ff788800ed0 100644 (file)
@@ -915,7 +915,7 @@ func commute1(m string, cnt map[string]int, arch arch) []string {
                        panic("couldn't find first two args of commutative op " + s[0])
                }
                if cnt[s[idx0]] == 1 && cnt[s[idx1]] == 1 || s[idx0] == s[idx1] && cnt[s[idx0]] == 2 {
-                       // When we have (Add x y) with no ther uses of x and y in the matching rule,
+                       // When we have (Add x y) with no other uses of x and y in the matching rule,
                        // then we can skip the commutative match (Add y x).
                        commutative = false
                }
index c9c04ef41ce307bf533e9344fe12c6d72e5171b2..cc6cb529729b7ab8ffdd1222ed69e752826d7dd8 100644 (file)
@@ -56,7 +56,7 @@ func insertLoopReschedChecks(f *Func) {
        //    are present in the graph, initially with trivial inputs.
        // 4. Record all to-be-modified uses of mem;
        //    apply modifications (split into two steps to simplify and
-       //    avoided nagging order-dependences).
+       //    avoided nagging order-dependencies).
        // 5. Rewrite backedges to include reschedule check,
        //    and modify destination phi function appropriately with new
        //    definitions for mem.
index d3d43b1f4273522b8e914be57adf078435057007..3d65541fd2c272fc37b3cb9fb222115bf8183d42 100644 (file)
@@ -129,7 +129,7 @@ Go Assembly for ARM64 Reference Manual
 
     VSUB: Sub (scalar)
       VSUB     <Vm>, <Vn>, <Vd>
-        Subtract low 64-bit element in <Vm> from the correponding element in <Vn>,
+        Subtract low 64-bit element in <Vm> from the corresponding element in <Vn>,
         place the result into low 64-bit element of <Vd>.
 
     VUADDLV: Unsigned sum Long across Vector.
index b95664830f2fa132912868e66cdeae4aaaaa31fd..7fb9a38a9fdfd6ed15a503d2811fc46e13e18b66 100644 (file)
@@ -457,7 +457,7 @@ func parseArmAttributes(e binary.ByteOrder, data []byte) (found bool, ehdrFlags
 // On ARM systems, Load will attempt to determine what ELF header flags to
 // emit by scanning the attributes in the ELF file being loaded. The
 // parameter initEhdrFlags contains the current header flags for the output
-// object, and the returnd ehdrFlags contains what this Load function computes.
+// object, and the returned ehdrFlags contains what this Load function computes.
 // TODO: find a better place for this logic.
 func Load(arch *sys.Arch, syms *sym.Symbols, f *bio.Reader, pkg string, length int64, pn string, initEhdrFlags uint32) (textp []*sym.Symbol, ehdrFlags uint32, err error) {
        errorf := func(str string, args ...interface{}) ([]*sym.Symbol, uint32, error) {
index 45a7939d677947513def73081664bfe580d0b935..62ccef91a6f8ac064973a9166db69d555b8f4c21 100644 (file)
@@ -70,7 +70,7 @@ const (
        // and for constructing the global offset table when internally linking a dynamic
        // executable.
        //
-       // TOOD(mwhudson): perhaps a better name for this is AttrNonGoSymbol.
+       // TODO(mwhudson): perhaps a better name for this is AttrNonGoSymbol.
        AttrSubSymbol
        // AttrContainer is set on text symbols that are present as the .Outer for some
        // other symbol.
index f661359c35819ad43e8b5d16f162971e54f68e2b..09c5483520ee5cbe99430c453586e7f69395d8a1 100644 (file)
@@ -608,7 +608,7 @@ func TestUnmarshalToLargeCoordinates(t *testing.T) {
        copy(invalidX[33:], y.Bytes())
 
        if X, Y := Unmarshal(curve, invalidX); X != nil || Y != nil {
-               t.Errorf("Unmarshal accpets invalid X coordinate")
+               t.Errorf("Unmarshal accepts invalid X coordinate")
        }
 
        // This is a point on the curve with a small y value, small enough that we can add p and still be within 32 bytes.
@@ -625,6 +625,6 @@ func TestUnmarshalToLargeCoordinates(t *testing.T) {
        copy(invalidY[33:], y.Bytes())
 
        if X, Y := Unmarshal(curve, invalidY); X != nil || Y != nil {
-               t.Errorf("Unmarshal accpets invalid Y coordinate")
+               t.Errorf("Unmarshal accepts invalid Y coordinate")
        }
 }
index 9477e85b95167a8b9d2d1a7b3bd9797f023860cd..f0df386122ab19237062519948e6ddea0873900f 100644 (file)
@@ -47,7 +47,7 @@ const (
        // name constraints, but leaf certificate contains a name of an
        // unsupported or unconstrained type.
        UnconstrainedName
-       // TooManyConstraints results when the number of comparision operations
+       // TooManyConstraints results when the number of comparison operations
        // needed to check a certificate exceeds the limit set by
        // VerifyOptions.MaxConstraintComparisions. This limit exists to
        // prevent pathological certificates can consuming excessive amounts of
@@ -185,7 +185,7 @@ type VerifyOptions struct {
        KeyUsages []ExtKeyUsage
        // MaxConstraintComparisions is the maximum number of comparisons to
        // perform when checking a given certificate's name constraints. If
-       // zero, a sensible default is used. This limit prevents pathalogical
+       // zero, a sensible default is used. This limit prevents pathological
        // certificates from consuming excessive amounts of CPU time when
        // validating.
        MaxConstraintComparisions int
index 405e818185821ac6f115f3cd8eb24c2fb3f76712..12cea0de9fcfbc609423cfcc855d5794d4e7b69a 100644 (file)
@@ -1375,7 +1375,7 @@ func TestInvalidNilValues(t *testing.T) {
 
                        err = conn.QueryRowContext(ctx, "SELECT|people|bdate|age=?", 1).Scan(tt.input)
                        if err == nil {
-                               t.Fatal("expected error when querying nil column, but suceeded")
+                               t.Fatal("expected error when querying nil column, but succeeded")
                        }
                        if err.Error() != tt.expectedError {
                                t.Fatalf("Expected error: %s\nReceived: %s", tt.expectedError, err.Error())
index 55f808ccba8b656552a37eeda3b8e105faee0a39..dd4c53a80d600439ddc1a5bcba785aa4e7944d58 100644 (file)
@@ -40,7 +40,7 @@ func TestEscape(t *testing.T) {
        }{
                F: false,
                T: true,
-               C: "<Cincinatti>",
+               C: "<Cincinnati>",
                G: "<Goodbye>",
                H: "<Hello>",
                A: []string{"<a>", "<b>"},
@@ -61,7 +61,7 @@ func TestEscape(t *testing.T) {
                {
                        "if",
                        "{{if .T}}Hello{{end}}, {{.C}}!",
-                       "Hello, &lt;Cincinatti&gt;!",
+                       "Hello, &lt;Cincinnati&gt;!",
                },
                {
                        "else",
@@ -71,17 +71,17 @@ func TestEscape(t *testing.T) {
                {
                        "overescaping1",
                        "Hello, {{.C | html}}!",
-                       "Hello, &lt;Cincinatti&gt;!",
+                       "Hello, &lt;Cincinnati&gt;!",
                },
                {
                        "overescaping2",
                        "Hello, {{html .C}}!",
-                       "Hello, &lt;Cincinatti&gt;!",
+                       "Hello, &lt;Cincinnati&gt;!",
                },
                {
                        "overescaping3",
                        "{{with .C}}{{$msg := .}}Hello, {{$msg}}!{{end}}",
-                       "Hello, &lt;Cincinatti&gt;!",
+                       "Hello, &lt;Cincinnati&gt;!",
                },
                {
                        "assignment",
@@ -181,7 +181,7 @@ func TestEscape(t *testing.T) {
                {
                        "urlBranchConflictMoot",
                        `<a href="{{if .T}}/foo?a={{else}}/bar#{{end}}{{.C}}">`,
-                       `<a href="/foo?a=%3cCincinatti%3e">`,
+                       `<a href="/foo?a=%3cCincinnati%3e">`,
                },
                {
                        "jsStrValue",
@@ -237,7 +237,7 @@ func TestEscape(t *testing.T) {
                        "jsStrNotUnderEscaped",
                        "<button onclick='alert({{.C | urlquery}})'>",
                        // URL escaped, then quoted for JS.
-                       `<button onclick='alert(&#34;%3CCincinatti%3E&#34;)'>`,
+                       `<button onclick='alert(&#34;%3CCincinnati%3E&#34;)'>`,
                },
                {
                        "jsRe",
@@ -405,7 +405,7 @@ func TestEscape(t *testing.T) {
                {
                        "HTML comment",
                        "<b>Hello, <!-- name of world -->{{.C}}</b>",
-                       "<b>Hello, &lt;Cincinatti&gt;</b>",
+                       "<b>Hello, &lt;Cincinnati&gt;</b>",
                },
                {
                        "HTML comment not first < in text node.",
@@ -445,7 +445,7 @@ func TestEscape(t *testing.T) {
                {
                        "Split HTML comment",
                        "<b>Hello, <!-- name of {{if .T}}city -->{{.C}}{{else}}world -->{{.W}}{{end}}</b>",
-                       "<b>Hello, &lt;Cincinatti&gt;</b>",
+                       "<b>Hello, &lt;Cincinnati&gt;</b>",
                },
                {
                        "JS line comment",
index 763146ecc4cf653a5e622917ee126d744f68cf3b..7ae1ba9b414343b69a72341dbdb02be8606e0ecc 100644 (file)
@@ -179,7 +179,7 @@ func (b *blockReader) Read(p []byte) (int, error) {
 // following the end of LZW data, the very next sub-block must be the block
 // terminator. If the very end of LZW data happened to fill one sub-block, at
 // most one more sub-block of length 1 may exist before the block-terminator.
-// These accomodations allow us to support GIFs created by less strict encoders.
+// These accommodations allow us to support GIFs created by less strict encoders.
 // See https://golang.org/issue/16146.
 func (b *blockReader) close() error {
        if b.err == io.EOF {
index 0eda9cd4e12356c1f9b8aaf25a993d99dc7ac1c4..b5378dc5ccdd63f2666d0db65b302bbe67276951 100644 (file)
@@ -617,7 +617,7 @@ func (z *Int) lehmerGCD(a, b *Int) *Int {
                        B.Add(r, w)
 
                } else {
-                       // single-digit calculations failed to simluate any quotients
+                       // single-digit calculations failed to simulate any quotients
                        // do a standard Euclidean step
                        t.Rem(A, B)
                        A, B, t = B, t, A