]> Cypherpunks.ru repositories - gostls13.git/commitdiff
all: fix minor misspellings
authorEric Lagergren <ericscottlagergren@gmail.com>
Mon, 3 Apr 2017 22:54:20 +0000 (15:54 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 3 Apr 2017 23:19:07 +0000 (23:19 +0000)
Change-Id: I1f1cfb161640eb8756fb1a283892d06b30b7a8fa
Reviewed-on: https://go-review.googlesource.com/39356
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

14 files changed:
src/bytes/bytes.go
src/bytes/bytes_amd64.s
src/cmd/compile/internal/syntax/nodes_test.go
src/context/context_test.go
src/go/types/object.go
src/hash/crc32/crc32_ppc64le.s
src/hash/crc32/crc32_s390x.s
src/math/big/int_test.go
src/net/http/request.go
src/os/os_windows_test.go
src/runtime/memmove_amd64.s
src/runtime/pprof/label_test.go
src/runtime/rt0_linux_mips64x.s
src/runtime/syscall_windows_test.go

index f461d2b3ce7d1027563ba80c4b24bed1072f67cb..de3bd0515a122d2e69019795276abd74a40e1e82 100644 (file)
@@ -46,7 +46,7 @@ func explode(s []byte, n int) [][]byte {
        return a[0:na]
 }
 
-// countGeneric actualy implements Count
+// countGeneric actually implements Count
 func countGeneric(s, sep []byte) int {
        n := 0
        // special case
index f4cbadf7bb986d2c2aadf50430a552430a86a5e0..a710e2251078f2cae02ad2610acd3228a5805ffd 100644 (file)
@@ -8,7 +8,7 @@
 //   SI: data
 //   BX: data len
 //   AL: byte sought
-// This require the POPCNT instruction
+// This requires the POPCNT instruction
 TEXT ·countByte(SB),NOSPLIT,$0-40
        MOVQ s+0(FP), SI
        MOVQ s_len+8(FP), BX
index ea446235fa475daada1ed9b66e45cf01c469a252..be9d5d897c9d6ef657b4ec22e313730145ca293e 100644 (file)
@@ -239,7 +239,7 @@ var comms = []test{
 
 func TestPos(t *testing.T) {
        // TODO(gri) Once we have a general tree walker, we can use that to find
-       // the first occurence of the respective node and we don't need to hand-
+       // the first occurrence of the respective node and we don't need to hand-
        // extract the node for each specific kind of construct.
 
        testPos(t, decls, "package p; ", "",
index 6efc06cbe59355bce15d5e886a0e54155594d5c4..f73f2837b80e1d23209f5936859c3c2fae828755 100644 (file)
@@ -428,7 +428,7 @@ func XTestAllocs(t testingT, testingShort func() bool, testingAllocsPerRun func(
                limit := test.limit
                if runtime.Compiler == "gccgo" {
                        // gccgo does not yet do escape analysis.
-                       // TOOD(iant): Remove this when gccgo does do escape analysis.
+                       // TODO(iant): Remove this when gccgo does do escape analysis.
                        limit = test.gccgoLimit
                }
                numRuns := 100
index 6d05052c7171546dd3e3da2924cddae287e73d31..f0bcd6766b52eada028801f4b659f42d4bf05bdc 100644 (file)
@@ -172,7 +172,7 @@ func (obj *TypeName) IsAlias() bool {
                // basic type (because basic types are pre-declared in the Universe
                // scope, outside any package scope), and so is any type name with
                // a different name than the name of the basic type it refers to.
-               // Additionaly, we need to look for "byte" and "rune" because they
+               // Additionally, we need to look for "byte" and "rune" because they
                // are aliases but have the same names (for better error messages).
                return obj.pkg != nil || t.name != obj.name || t == universeByte || t == universeRune
        case *Named:
index d54059f823aee88a8012bcaad8b8a8ba91add5c7..10d5dd61dbcb7791cb32377249c0bfaed77cc9fd 100644 (file)
@@ -246,7 +246,7 @@ startConst:
        LVX     (R4+off112),V23
        ADD     $128,R4         // bump up to next 128 bytes in buffer
 
-       VXOR    V16,V8,V16      // xor in inital CRC in V8
+       VXOR    V16,V8,V16      // xor in initial CRC in V8
 
 next:
        BC      18,0,first_warm_up_done
index 0b830531f78206fd91e7ee35ae1a22a5d2f49f3f..63aa609db27fb900767ccb73263c444e04a70509 100644 (file)
@@ -227,7 +227,7 @@ final_fold:
        // Note: To compensate the division by x^32, use the vector unpack
        // instruction to move the leftmost word into the leftmost doubleword
        // of the vector register.  The rightmost doubleword is multiplied
-       // with zero to not contribute to the intermedate results.
+       // with zero to not contribute to the intermediate results.
 
 
        // T1(x) = floor( R(x) / x^32 ) GF2MUL u
index 155ccee6af175baaf8c6738e908eb4a6247b5de5..42e810b3b81c6ceb2701b1e928a5ac3c6375ce3c 100644 (file)
@@ -260,7 +260,7 @@ func BenchmarkBinomial(b *testing.B) {
 var divisionSignsTests = []struct {
        x, y int64
        q, r int64 // T-division
-       d, m int64 // Euclidian division
+       d, m int64 // Euclidean division
 }{
        {5, 3, 1, 2, 1, 2},
        {-5, 3, -1, -2, -2, 1},
index a6e96259a0ea814693154a7bb7701e055d3d034a..739970b28cb3684d8f3c2fbb2ed9b6bc19bccec6 100644 (file)
@@ -639,7 +639,7 @@ type requestBodyReadError struct{ error }
 func idnaASCII(v string) (string, error) {
        // TODO: Consider removing this check after verifying performance is okay.
        // Right now punycode verification, length checks, context checks, and the
-       // permissable character tests are all omitted. It also prevents the ToASCII
+       // permissible character tests are all omitted. It also prevents the ToASCII
        // call from salvaging an invalid IDN, when possible. As a result it may be
        // possible to have two IDNs that appear identical to the user where the
        // ASCII-only version causes an error downstream whereas the non-ASCII
index 61ca0c91bffc968400ae4450450d085f708becd6..dc8c2fc56e3d0046b7487439f9f3f5e5e72e44e3 100644 (file)
@@ -849,7 +849,7 @@ func main() {
                args := os.CommandLineToArgv(exe + cmd)
                out, err := osexec.Command(args[0], args[1:]...).CombinedOutput()
                if err != nil {
-                       t.Fatalf("runing %q failed: %v\n%v", args, err, string(out))
+                       t.Fatalf("running %q failed: %v\n%v", args, err, string(out))
                }
                if want, have := fmt.Sprintf("%q", args), string(out); want != have {
                        t.Errorf("wrong output of executing %q: have %q want %q", args, have, want)
index c2286d3edd241ca1801565745d9829110677c432..ed674fe40b7a94acc56413bca33ae69c108bba70 100644 (file)
@@ -407,7 +407,7 @@ gobble_big_data_fwd:
 gobble_mem_fwd_loop:
        PREFETCHNTA 0x1C0(SI)
        PREFETCHNTA 0x280(SI)
-       // Prefetch values were choosen empirically.
+       // Prefetch values were chosen empirically.
        // Approach for prefetch usage as in 7.6.6 of [1]
        // [1] 64-ia-32-architectures-optimization-manual.pdf
        // http://www.intel.ru/content/dam/www/public/us/en/documents/manuals/64-ia-32-architectures-optimization-manual.pdf
index d4a3fe92a918b48facae2728c34a2704f30ee6c1..240445f098e291b89513cf9865e3260c9d30ca30 100644 (file)
@@ -33,7 +33,7 @@ func TestContextLabels(t *testing.T) {
 
        // Add a single label.
        ctx = WithLabels(ctx, Labels("key", "value"))
-       // Retreive it with Label.
+       // Retrieve it with Label.
        v, ok := Label(ctx, "key")
        if !ok || v != "value" {
                t.Errorf(`Label(ctx, "key"): got %v, %v; want "value", ok`, v, ok)
index beb4ef26acdc5f74562d5af363a680b41e845d06..0891c68c694013761cca81f7ef166b305ec01c11 100644 (file)
@@ -30,7 +30,7 @@ TEXT main(SB),NOSPLIT,$-8
        // in external linking, glibc jumps to main with argc in R4
        // and argv in R5
 
-       // initalize REGSB = PC&0xffffffff00000000
+       // initialize REGSB = PC&0xffffffff00000000
        BGEZAL  R0, 1(PC)
        SRLV    $32, R31, RSB
        SLLV    $32, RSB
index 099baa2edf1dfe229c582693b364fe1a4a2a54a2..3da154dfa8e7d521f87c5f29ec6cdd12ae9c1c32 100644 (file)
@@ -1055,7 +1055,7 @@ func BenchmarkRunningGoProgram(b *testing.B) {
                cmd := exec.Command(exe)
                out, err := cmd.CombinedOutput()
                if err != nil {
-                       b.Fatalf("runing main.exe failed: %v\n%s", err, out)
+                       b.Fatalf("running main.exe failed: %v\n%s", err, out)
                }
        }
 }