]> Cypherpunks.ru repositories - gostls13.git/commitdiff
all: fix a bunch of misspellings
authorVille Skyttä <ville.skytta@iki.fi>
Fri, 15 Nov 2019 19:49:30 +0000 (19:49 +0000)
committerIan Lance Taylor <iant@golang.org>
Fri, 15 Nov 2019 21:04:43 +0000 (21:04 +0000)
Change-Id: I5b909df0fd048cd66c5a27fca1b06466d3bcaac7
GitHub-Last-Rev: 778c5d21311abee09a5fbda2e4005a5fd4cc3f9f
GitHub-Pull-Request: golang/go#35624
Reviewed-on: https://go-review.googlesource.com/c/go/+/207421
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
31 files changed:
misc/trace/trace_viewer_full.html
src/cmd/compile/internal/gc/bexport.go
src/cmd/compile/internal/gc/plive.go
src/cmd/compile/internal/gc/range.go
src/cmd/compile/internal/ssa/block.go
src/cmd/compile/internal/ssa/gen/ARM64.rules
src/cmd/compile/internal/ssa/gen/generic.rules
src/cmd/compile/internal/ssa/nilcheck_test.go
src/cmd/link/internal/ld/dwarf.go
src/cmd/link/internal/loadpe/ldpe.go
src/crypto/dsa/dsa_test.go
src/crypto/elliptic/p256.go
src/crypto/tls/handshake_server.go
src/crypto/tls/handshake_server_test.go
src/debug/elf/file_test.go
src/debug/pe/file.go
src/internal/bytealg/count_s390x.s
src/math/big/nat.go
src/net/http/serve_test.go
src/net/http/transfer.go
src/net/http/transport.go
src/net/http/transport_test.go
src/net/ipsock_posix.go
src/net/lookup_windows.go
src/runtime/defs_aix.go
src/runtime/error.go
src/runtime/mgcscavenge.go
src/runtime/mheap.go
src/runtime/pprof/pprof_test.go
src/runtime/slice.go
src/runtime/stack.go

index 29360698bac0bc6f4c5487ed5ce9f4da1c0cdc0f..c8689ba79f1b8f38223becc435c279b9f8b7a2ae 100644 (file)
@@ -6307,7 +6307,7 @@ function define(className,opt_parentConstructor,opt_tagNS){if(typeof className==
 className=className.toLowerCase();if(opt_parentConstructor&&!opt_parentConstructor.tagName){throw new Error('opt_parentConstructor was not '+'created by tr.ui.b.define');}
 let tagName=className;let tagNS=undefined;if(opt_parentConstructor){if(opt_tagNS){throw new Error('Must not specify tagNS if parentConstructor is given');}
 let parent=opt_parentConstructor;while(parent&&parent.tagName){tagName=parent.tagName;tagNS=parent.tagNS;parent=parent.parentConstructor;}}else{tagNS=opt_tagNS;}
-function f(){if(opt_parentConstructor&&f.prototype.__proto__!==opt_parentConstructor.prototype){throw new Error(className+' prototye\'s __proto__ field is messed up. '+'It MUST be the prototype of '+opt_parentConstructor.tagName);}
+function f(){if(opt_parentConstructor&&f.prototype.__proto__!==opt_parentConstructor.prototype){throw new Error(className+' prototype\'s __proto__ field is messed up. '+'It MUST be the prototype of '+opt_parentConstructor.tagName);}
 let el;if(tagNS===undefined){el=tr.doc.createElement(tagName);}else{el=tr.doc.createElementNS(tagNS,tagName);}
 f.decorate.call(this,el,arguments);return el;}
 f.decorate=function(el){el.__proto__=f.prototype;el.decorate.apply(el,arguments[1]);el.constructor=f;};f.className=className;f.tagName=tagName;f.tagNS=tagNS;f.parentConstructor=(opt_parentConstructor?opt_parentConstructor:undefined);f.toString=function(){if(!f.parentConstructor){return f.tagName;}
index e67506f4e137ccb6010f83376703e5391fb8f2ff..5ced66c0da8f124fdc15a0a1a5ddfce7e62f39d2 100644 (file)
@@ -127,7 +127,7 @@ const (
 )
 
 // untype returns the "pseudo" untyped type for a Ctype (import/export use only).
-// (we can't use an pre-initialized array because we must be sure all types are
+// (we can't use a pre-initialized array because we must be sure all types are
 // set up)
 func untype(ctype Ctype) *types.Type {
        switch ctype {
index c205a09d1c29f5dd0bce7e599ff398bf625abb63..5b9f31426dfc01a2bbbadc4bd265b087e5f0936c 100644 (file)
@@ -652,7 +652,7 @@ func (lv *Liveness) markUnsafePoints() {
 
        lv.unsafePoints = bvalloc(int32(lv.f.NumValues()))
 
-       // Mark architecture-specific unsafe pointes.
+       // Mark architecture-specific unsafe points.
        for _, b := range lv.f.Blocks {
                for _, v := range b.Values {
                        if v.Op.UnsafePoint() {
index 02131e32be8531c30b16b90eee072c2fef64f5e0..1cf0a0862fdf1fea0ff8f1f799f4d9d69633eedb 100644 (file)
@@ -101,7 +101,7 @@ func typecheckrangeExpr(n *Node) {
                v2 = n.List.Second()
        }
 
-       // this is not only a optimization but also a requirement in the spec.
+       // this is not only an optimization but also a requirement in the spec.
        // "if the second iteration variable is the blank identifier, the range
        // clause is equivalent to the same clause with only the first variable
        // present."
index 73ab7e3b1c22a5c01ce4af00c528ba751964cd13..eadd5700ba71f2bd1488dc075b4ce7ec2da22cef 100644 (file)
@@ -223,7 +223,7 @@ func (b *Block) CopyControls(from *Block) {
 }
 
 // Reset sets the block to the provided kind and clears all the blocks control
-// and auxilliary values. Other properties of the block, such as its successors,
+// and auxiliary values. Other properties of the block, such as its successors,
 // predecessors and values are left unmodified.
 func (b *Block) Reset(kind BlockKind) {
        b.Kind = kind
index a9bf64488e1860aca59ab2b109cedf5e574a0e03..e1b41d5b89549770e062c7fa12308b7aa60c328b 100644 (file)
 (Geq32U x y) -> (GreaterEqualU (CMPW x y))
 (Geq64U x y) -> (GreaterEqualU (CMP x y))
 
-// Optimize comparision between a floating-point value and 0.0 with "FCMP $(0.0), Fn"
+// Optimize comparison between a floating-point value and 0.0 with "FCMP $(0.0), Fn"
 (FCMPS x (FMOVSconst [0])) -> (FCMPS0 x)
 (FCMPS (FMOVSconst [0]) x) -> (InvertFlags (FCMPS0 x))
 (FCMPD x (FMOVDconst [0])) -> (FCMPD0 x)
index 12ca57ea6e4e58c43e6dc023bbaaba333ea1436a..87cfd3da0f72c51fefb92a5dc27d541c46aa4d84 100644 (file)
 
 // Divisibility checks x%c == 0 convert to multiply and rotate.
 // Note, x%c == 0 is rewritten as x == c*(x/c) during the opt pass
-// where (x/c) is peformed using multiplication with magic constants.
+// where (x/c) is performed using multiplication with magic constants.
 // To rewrite x%c == 0 requires pattern matching the rewritten expression
 // and checking that the division by the same constant wasn't already calculated.
 // This check is made by counting uses of the magic constant multiplication.
index e9840690221ebeadcbd387b3933072858e44bd61..f728e8ee25d7f549674c430e93810c248f00ced7 100644 (file)
@@ -294,7 +294,7 @@ func TestNilcheckKeepRemove(t *testing.T) {
        }
 }
 
-// TestNilcheckInFalseBranch tests that nil checks in the false branch of an nilcheck
+// TestNilcheckInFalseBranch tests that nil checks in the false branch of a nilcheck
 // block are *not* removed.
 func TestNilcheckInFalseBranch(t *testing.T) {
        c := testConfig(t)
index f9cb0e98c335053148b797564817850d92a7e27b..6eba39bcf78a6c03fa01e3699b51f1cfd59ca49f 100644 (file)
@@ -1133,7 +1133,7 @@ func writelines(ctxt *Link, unit *sym.CompilationUnit, ls *sym.Symbol) {
                lastAddr = addr
 
                // Output the line table.
-               // TODO: Now that we have all the debug information in seperate
+               // TODO: Now that we have all the debug information in separate
                // symbols, it would make sense to use a rope, and concatenate them all
                // together rather then the append() below. This would allow us to have
                // the compiler emit the DW_LNE_set_address and a rope data structure
index 353f6e0863fac9423244efd7e42db2c56dd2edfc..8b6aac338c3c7b8d6d76944af2b9b2a13e95d6df 100644 (file)
@@ -459,16 +459,16 @@ func readpesym(arch *sys.Arch, lookup func(string, int) *sym.Symbol, f *pe.File,
                case sys.AMD64:
                        if name == "__imp___acrt_iob_func" {
                                // Do not rename __imp___acrt_iob_func into __acrt_iob_func,
-                               // becasue __imp___acrt_iob_func symbol is real
-                               // (see commit b295099 from git://git.code.sf.net/p/mingw-w64/mingw-w64 for detials).
+                               // because __imp___acrt_iob_func symbol is real
+                               // (see commit b295099 from git://git.code.sf.net/p/mingw-w64/mingw-w64 for details).
                        } else {
                                name = strings.TrimPrefix(name, "__imp_") // __imp_Name => Name
                        }
                case sys.I386:
                        if name == "__imp____acrt_iob_func" {
                                // Do not rename __imp____acrt_iob_func into ___acrt_iob_func,
-                               // becasue __imp____acrt_iob_func symbol is real
-                               // (see commit b295099 from git://git.code.sf.net/p/mingw-w64/mingw-w64 for detials).
+                               // because __imp____acrt_iob_func symbol is real
+                               // (see commit b295099 from git://git.code.sf.net/p/mingw-w64/mingw-w64 for details).
                        } else {
                                name = strings.TrimPrefix(name, "__imp_") // __imp_Name => Name
                        }
index 7332a3a54036a0116d5d42766985181e173b26e2..28ac00e6ce69340d756680af624ec0544466d8f4 100644 (file)
@@ -108,7 +108,7 @@ func TestSignAndVerifyWithBadPublicKey(t *testing.T) {
        }
 
        if Verify(&pub, []byte("testing"), fromHex("2"), fromHex("4")) {
-               t.Errorf("Verify unexpected success with non-existant mod inverse of Q")
+               t.Errorf("Verify unexpected success with non-existent mod inverse of Q")
        }
 }
 
index 80e123a734cce4de53e3fe8878fe2270c3c42f56..aa9eeb5061d90d1bd8865b63bb4acd75453dccb1 100644 (file)
@@ -85,7 +85,7 @@ func (p256Curve) ScalarMult(bigX, bigY *big.Int, scalar []byte) (x, y *big.Int)
 
 // Field elements are represented as nine, unsigned 32-bit words.
 //
-// The value of an field element is:
+// The value of a field element is:
 //   x[0] + (x[1] * 2**29) + (x[2] * 2**57) + ... + (x[8] * 2**228)
 //
 // That is, each limb is alternately 29 or 28-bits wide in little-endian
index a5937007e32376bd413afef185e7f97a578615c9..b16415a03c238326a3004f43c1df8eb206f7529e 100644 (file)
@@ -241,7 +241,7 @@ func (hs *serverHandshakeState) processClientHello() error {
        hs.ecdheOk = supportsECDHE(c.config, hs.clientHello.supportedCurves, hs.clientHello.supportedPoints)
 
        if hs.ecdheOk {
-               // Although omiting the ec_point_formats extension is permitted, some
+               // Although omitting the ec_point_formats extension is permitted, some
                // old OpenSSL version will refuse to handshake if not present.
                //
                // Per RFC 4492, section 5.1.2, implementations MUST support the
index 2a44af08d3805387c093007eb80f5cd95a84c825..1e5da1e12e1503744cb71a448761b8b67f3b2747 100644 (file)
@@ -274,7 +274,7 @@ func TestTLS12OnlyCipherSuites(t *testing.T) {
 }
 
 func TestTLSPointFormats(t *testing.T) {
-       // Test that a Server returns the ec_point_format extention when ECC is
+       // Test that a Server returns the ec_point_format extension when ECC is
        // negotiated, and not returned on RSA handshake.
        tests := []struct {
                name                string
index 42e575e182d47557377518ac492820f2ed6f11f5..b13d13ebf09d5ed63cc827455029e3baf110eb5a 100644 (file)
@@ -818,6 +818,6 @@ func TestIssue10996(t *testing.T) {
                "0000")
        _, err := NewFile(bytes.NewReader(data))
        if err == nil {
-               t.Fatalf("opening invalid ELF file unexpectedly suceeded")
+               t.Fatalf("opening invalid ELF file unexpectedly succeeded")
        }
 }
index 14ad2452245571f7175d53e5001d31cf3a9af633..7d763fff19d5005b1bb31ca6189df70329f22055 100644 (file)
@@ -475,7 +475,7 @@ func readOptionalHeader(r io.ReadSeeker, sz uint16) (interface{}, error) {
                var (
                        oh32 OptionalHeader32
                        // There can be 0 or more data directories. So the minimum size of optional
-                       // header is calculated by substracting oh32.DataDirectory size from oh32 size.
+                       // header is calculated by subtracting oh32.DataDirectory size from oh32 size.
                        oh32MinSz = binary.Size(oh32) - binary.Size(oh32.DataDirectory)
                )
 
@@ -529,7 +529,7 @@ func readOptionalHeader(r io.ReadSeeker, sz uint16) (interface{}, error) {
                var (
                        oh64 OptionalHeader64
                        // There can be 0 or more data directories. So the minimum size of optional
-                       // header is calculated by substracting oh64.DataDirectory size from oh64 size.
+                       // header is calculated by subtracting oh64.DataDirectory size from oh64 size.
                        oh64MinSz = binary.Size(oh64) - binary.Size(oh64.DataDirectory)
                )
 
index e2d90e7551fd05006c46f076f81f7ebf002f1673..2a3b5c03e944fc28d87a5ca645344aa21bd3fe23 100644 (file)
@@ -95,7 +95,7 @@ TEXT countbytebody<>(SB), NOSPLIT|NOFRAME, $0-0
 vxchunks:
        // Load 0x01 into every byte element in the 16-byte mask vector.
        VREPIB $1, V_MASK // V_MASK = [16]byte{1, 1, ..., 1, 1}
-       VZERO  V_CNT      // intial uint128 count of 0
+       VZERO  V_CNT      // initial uint128 count of 0
 
 vxloop:
        // Load input bytes in 16-byte chunks.
index 9d7da1ee165f55799dc51103f30c9d108a13ad3c..1b771ca7c6357f08acbec12d9c284728bf4747cb 100644 (file)
@@ -886,7 +886,7 @@ func (z nat) divRecursiveStep(u, v nat, depth int, tmp *nat, temps []*nat) {
                //    u = q̂ (v - v_l) + rh << s + u_l
                // After the above step, u contains a remainder:
                //    u = rh << s + u_l
-               // and we need to substract q̂ v_l
+               // and we need to subtract q̂ v_l
                //
                // But it may be a bit too large, in which case q̂ needs to be smaller.
                qhatv := tmp.make(3 * n)
index af43421fce938d629915b25d7d7532a79ca3e5fa..9077c0c1220db11e0e15884619e4435ab6a9bb53 100644 (file)
@@ -4352,7 +4352,7 @@ func TestCloseWrite(t *testing.T) {
 
 // This verifies that a handler can Flush and then Hijack.
 //
-// An similar test crashed once during development, but it was only
+// A similar test crashed once during development, but it was only
 // testing this tangentially and temporarily until another TODO was
 // fixed.
 //
index e28d0be020bf70531868f7532735c445da98e9ee..1d6a987545438bbf02fe9e355eef51da4268a63b 100644 (file)
@@ -633,11 +633,11 @@ func chunked(te []string) bool { return len(te) > 0 && te[len(te)-1] == "chunked
 // implicitlyChunked is a helper to check for implicity of chunked, because
 // RFC 7230 Section 3.3.1 says that the sender MUST apply chunked as the final
 // payload body to ensure that the message is framed for both the request
-// and the body. Since "identity" is incompatabile with any other transformational
+// and the body. Since "identity" is incompatible with any other transformational
 // encoding cannot co-exist, the presence of "identity" will cause implicitlyChunked
 // to return false.
 func implicitlyChunked(te []string) bool {
-       if len(te) == 0 { // No transfer-encodings passed in, so not implicity chunked.
+       if len(te) == 0 { // No transfer-encodings passed in, so not implicitly chunked.
                return false
        }
        for _, tei := range te {
index bdc767a2363fa0d9c2be19468f5805e8549503fd..f3cf31c8a7100b968a619c00ccef0e7159a0f6e4 100644 (file)
@@ -89,7 +89,7 @@ const DefaultMaxIdleConnsPerHost = 2
 // Request.GetBody defined. HTTP requests are considered idempotent if
 // they have HTTP methods GET, HEAD, OPTIONS, or TRACE; or if their
 // Header map contains an "Idempotency-Key" or "X-Idempotency-Key"
-// entry. If the idempotency key value is an zero-length slice, the
+// entry. If the idempotency key value is a zero-length slice, the
 // request is treated as idempotent but the header is not sent on the
 // wire.
 type Transport struct {
index 62f1e36b388adb69bebd13b584c1398389a166ba..517b03bf4850ba3159eeb6e0c79ec10b8453bc98 100644 (file)
@@ -3717,7 +3717,7 @@ func TestTransportRemovesH2ConnsAfterIdle(t *testing.T) {
        }
 }
 
-// This tests that an client requesting a content range won't also
+// This tests that a client requesting a content range won't also
 // implicitly ask for gzip support. If they want that, they need to do it
 // on their own.
 // golang.org/issue/8923
index 5570ed118d0257ce6aa1a103627f3ab8473b7323..8763d579fb18b47c90059cd8f79850338b6cc6cb 100644 (file)
@@ -162,7 +162,7 @@ func ipToSockaddr(family int, ip IP, port int, zone string) (syscall.Sockaddr, e
                // of IP node.
                //
                // When the IP node supports IPv4-mapped IPv6 address,
-               // we allow an listener to listen to the wildcard
+               // we allow a listener to listen to the wildcard
                // address of both IP addressing spaces by specifying
                // IPv6 wildcard address.
                if len(ip) == 0 || ip.Equal(IPv4zero) {
index adf1e368e1eb5a7bc5d955aac209bfb996827c88..cb840ae2387989a56babb445df2e2ce0ca5e1228 100644 (file)
@@ -375,7 +375,7 @@ func validRecs(r *syscall.DNSRecord, dnstype uint16, name string) []*syscall.DNS
 
 // returns the last CNAME in chain
 func resolveCNAME(name *uint16, r *syscall.DNSRecord) *uint16 {
-       // limit cname resolving to 10 in case of a infinite CNAME loop
+       // limit cname resolving to 10 in case of an infinite CNAME loop
 Cname:
        for cnameloop := 0; cnameloop < 10; cnameloop++ {
                for p := r; p != nil; p = p.Next {
index a8924133c51c9d490e915c27115081ee93c9bc28..23a6cac2bbdd0b2f0ab7fb53ed41dc2bedacaf4a 100644 (file)
@@ -8,7 +8,7 @@
 Input to cgo -godefs
 GOARCH=ppc64 go tool cgo -godefs defs_aix.go > defs_aix_ppc64_tmp.go
 
-This is only an helper to create defs_aix_ppc64.go
+This is only a helper to create defs_aix_ppc64.go
 Go runtime functions require the "linux" name of fields (ss_sp, si_addr, etc)
 However, AIX structures don't provide such names and must be modified.
 
index 0085dfc824a43cb2de4cfb5500d9a9795493334d..555befa43d465db2be3f74328963146629fb91da 100644 (file)
@@ -88,7 +88,7 @@ func (e plainError) Error() string {
        return string(e)
 }
 
-// An boundsError represents a an indexing or slicing operation gone wrong.
+// A boundsError represents an indexing or slicing operation gone wrong.
 type boundsError struct {
        x int64
        y int
index b3f9cca10d06b9cd3e3d8e9519fcd6b55ae137f8..9c45ce8c87aa83176c0c0e8c43eaa11798282331 100644 (file)
@@ -521,7 +521,7 @@ func fillAligned(x uint64, m uint) uint64 {
                // "[It] works by first zeroing the high bits of the [8]
                // bytes in the word. Subsequently, it adds a number that
                // will result in an overflow to the high bit of a byte if
-               // any of the low bits were initialy set. Next the high
+               // any of the low bits were initially set. Next the high
                // bits of the original word are ORed with these values;
                // thus, the high bit of a byte is set iff any bit in the
                // byte was set. Finally, we determine if any of these high
index e87da933263d05ba9ee2108bdeb9e5a498c3ac1c..3f3e36728bf943f2ac897565795169d8c18e117e 100644 (file)
@@ -1419,7 +1419,7 @@ func (h *mheap) freeSpanLocked(s *mspan, acctinuse, acctidle bool) {
 // unscav and adds it into scav before continuing.
 func (h *mheap) scavengeAll() {
        // Disallow malloc or panic while holding the heap lock. We do
-       // this here because this is an non-mallocgc entry-point to
+       // this here because this is a non-mallocgc entry-point to
        // the mheap API.
        gp := getg()
        gp.m.mallocing++
index 9eba0078a525ab19d30f997a02ac503f270f458c..64e03aeccfb963e3e46b231223d8869a0549e518 100644 (file)
@@ -112,7 +112,7 @@ func containsInlinedCall(f interface{}, maxBytes int) bool {
 }
 
 // findInlinedCall returns the PC of an inlined function call within
-// the funtion body for the function f if any.
+// the function body for the function f if any.
 func findInlinedCall(f interface{}, maxBytes int) (pc uint64, found bool) {
        fFunc := runtime.FuncForPC(uintptr(funcPC(f)))
        if fFunc == nil || fFunc.Entry() == 0 {
index 79cfc69c5488851531b89fc9a1d562c60722fd07..16937a2a0108811c2ece2a80d0e7c32095e4408f 100644 (file)
@@ -16,7 +16,7 @@ type slice struct {
        cap   int
 }
 
-// An notInHeapSlice is a slice backed by go:notinheap memory.
+// A notInHeapSlice is a slice backed by go:notinheap memory.
 type notInHeapSlice struct {
        array *notInHeap
        len   int
index 68b24432a4fb47b0b1536f34ed7fd98a1357870f..84fbd33329613f88a7f0b05200c8d4668352afc9 100644 (file)
@@ -627,7 +627,7 @@ func adjustframe(frame *stkframe, arg unsafe.Pointer) bool {
                print("    adjusting ", funcname(f), " frame=[", hex(frame.sp), ",", hex(frame.fp), "] pc=", hex(frame.pc), " continpc=", hex(frame.continpc), "\n")
        }
        if f.funcID == funcID_systemstack_switch {
-               // A special routine at the bottom of stack of a goroutine that does an systemstack call.
+               // A special routine at the bottom of stack of a goroutine that does a systemstack call.
                // We will allow it to be copied even though we don't
                // have full GC info for it (because it is written in asm).
                return true