]> Cypherpunks repositories - gostls13.git/commitdiff
all: fix typos
authorShawn Smith <shawnpsmith@gmail.com>
Sat, 6 Feb 2016 11:35:29 +0000 (20:35 +0900)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 23 Feb 2016 13:58:47 +0000 (13:58 +0000)
Change-Id: I6035941df8b0de6aeaf6c05df7257bcf6e9191fe
Reviewed-on: https://go-review.googlesource.com/19320
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/cmd/compile/internal/arm/prog.go
src/cmd/compile/internal/gc/inl.go
src/cmd/compile/internal/gc/parser.go
src/cmd/internal/obj/arm/obj5.go
src/crypto/rsa/rsa.go
src/go/types/eval.go
src/mime/encodedword.go
src/net/dnsmsg.go
src/net/http/httptest/server.go
src/net/http/server.go
src/net/http/transport.go
src/os/os_windows_test.go
src/path/filepath/symlink.go
src/runtime/chan.go

index 81be77a5b09bb9b22d4bc4d068b85c8a65700d58..49a329b535c959a63dedf960ccd5f27437921eea 100644 (file)
@@ -98,11 +98,11 @@ var progtable = [arm.ALAST]obj.ProgInfo{
        arm.AMOVH: {Flags: gc.SizeW | gc.LeftRead | gc.RightWrite | gc.Move},
        arm.AMOVW: {Flags: gc.SizeL | gc.LeftRead | gc.RightWrite | gc.Move},
 
-       // In addtion, duffzero reads R0,R1 and writes R1.  This fact is
+       // In addition, duffzero reads R0,R1 and writes R1.  This fact is
        // encoded in peep.c
        obj.ADUFFZERO: {Flags: gc.Call},
 
-       // In addtion, duffcopy reads R1,R2 and writes R0,R1,R2.  This fact is
+       // In addition, duffcopy reads R1,R2 and writes R0,R1,R2.  This fact is
        // encoded in peep.c
        obj.ADUFFCOPY: {Flags: gc.Call},
 
index 64afd6743856d67fec50c02475a4f291260bbfc4..a445f712e278af3868f90f740231a2f34f298759 100644 (file)
@@ -7,7 +7,7 @@
 // saves a copy of the body. Then inlcalls walks each function body to
 // expand calls to inlinable functions.
 //
-// The debug['l'] flag controls the agressiveness. Note that main() swaps level 0 and 1,
+// The debug['l'] flag controls the aggressiveness. Note that main() swaps level 0 and 1,
 // making 1 the default and -l disable.  -ll and more is useful to flush out bugs.
 // These additional levels (beyond -l) may be buggy and are not supported.
 //      0: disabled
index f49f69c7983849629e8c25f9390b3633d8a90039..fbc5a5e1eb83c879b6f9b33a9488b75ec5fdc49b 100644 (file)
@@ -5,7 +5,7 @@
 package gc
 
 // The recursive-descent parser is built around a slighty modified grammar
-// of Go to accomodate for the constraints imposed by strict one token look-
+// of Go to accommodate for the constraints imposed by strict one token look-
 // ahead, and for better error handling. Subsequent checks of the constructed
 // syntax tree restrict the language accepted by the compiler to proper Go.
 //
index 19a70e177e9ec4857fcb04a8b9a91002adf4ec74..1a51dc3b88eb518d8a0f46f06bd04ed0beb02026 100644 (file)
@@ -60,7 +60,7 @@ func progedit(ctxt *obj.Link, p *obj.Prog) {
        // Treat MRC 15, 0, <reg>, C13, C0, 3 specially.
        case AMRC:
                if p.To.Offset&0xffff0fff == 0xee1d0f70 {
-                       // Because the instruction might be rewriten to a BL which returns in R0
+                       // Because the instruction might be rewritten to a BL which returns in R0
                        // the register must be zero.
                        if p.To.Offset&0xf000 != 0 {
                                ctxt.Diag("%v: TLS MRC instruction must write to R0 as it might get translated into a BL instruction", p.Line())
index ee022b803ae21fffd6d67ed2922a883c6d56dcbf..dc57a6335af1d66020452d4645e1bece67edadc7 100644 (file)
@@ -14,7 +14,7 @@
 // possible.
 //
 // Two sets of interfaces are included in this package. When a more abstract
-// interface isn't neccessary, there are functions for encrypting/decrypting
+// interface isn't necessary, there are functions for encrypting/decrypting
 // with v1.5/OAEP and signing/verifying with v1.5/PSS. If one needs to abstract
 // over the public-key primitive, the PrivateKey struct implements the
 // Decrypter and Signer interfaces from the crypto package.
index 7b42ff1a9d075d4be8c20cf0fb01c176190accf9..f928ee6923c1278694f5c2e6280eafa7c18a1b32 100644 (file)
@@ -44,7 +44,7 @@ func Eval(fset *token.FileSet, pkg *Package, pos token.Pos, expr string) (tv Typ
                scope = pkg.scope
        } else {
                // The package scope extent (position information) may be
-               // incorrect (files spread accross a wide range of fset
+               // incorrect (files spread across a wide range of fset
                // positions) - ignore it and just consider its children
                // (file scopes).
                for _, fscope := range pkg.scope.children {
index db4b5f4510ba495d3a27c44df89b94a79061406b..d219bbd393bbaf4db4c0b2e22e64b32b434dfa5c 100644 (file)
@@ -89,7 +89,7 @@ func (e WordEncoder) bEncode(buf *bytes.Buffer, charset, s string) {
 
        var currentLen, last, runeLen int
        for i := 0; i < len(s); i += runeLen {
-               // Multi-byte characters must not be split accross encoded-words.
+               // Multi-byte characters must not be split across encoded-words.
                // See RFC 2047, section 5.3.
                _, runeLen = utf8.DecodeRuneInString(s[i:])
 
@@ -119,7 +119,7 @@ func (e WordEncoder) qEncode(buf *bytes.Buffer, charset, s string) {
        var currentLen, runeLen int
        for i := 0; i < len(s); i += runeLen {
                b := s[i]
-               // Multi-byte characters must not be split accross encoded-words.
+               // Multi-byte characters must not be split across encoded-words.
                // See RFC 2047, section 5.3.
                var encLen int
                if b >= ' ' && b <= '~' && b != '=' && b != '?' && b != '_' {
index 2ec4c8c3015a2663a98e63a9dd82e8ac41086b40..5747fd232b987cc9fdfa51a762e0df8f83dc7230 100644 (file)
@@ -315,7 +315,7 @@ func (rr *dnsRR_TXT) Walk(f func(v interface{}, name, tag string) bool) bool {
                if !f(&txt, "Txt", "") {
                        return false
                }
-               // more bytes than rr.Hdr.Rdlength said there woudld be
+               // more bytes than rr.Hdr.Rdlength said there would be
                if rr.Hdr.Rdlength-n < uint16(len(txt))+1 {
                        return false
                }
index a2573df2510a076bb347b4f13446eee72ec90fed..7e52adb6071e187591327a8f9fd798b249bff054 100644 (file)
@@ -167,7 +167,7 @@ func (s *Server) Close() {
                        // few milliseconds wasn't liked (early versions of
                        // https://golang.org/cl/15151) so now we just
                        // forcefully close StateNew. The docs for Server.Close say
-                       // we wait for "oustanding requests", so we don't close things
+                       // we wait for "outstanding requests", so we don't close things
                        // in StateActive.
                        if st == http.StateIdle || st == http.StateNew {
                                s.closeConn(c)
index 1b5cda3159a2623989c870e91ddfd9dfb81a74c0..e2d8d277e0418b7b1c34183c8c7e22bc5aa559d1 100644 (file)
@@ -1009,7 +1009,7 @@ func (cw *chunkWriter) writeHeader(p []byte) {
                                        w.closeAfterReply = true
                                }
                        default:
-                               // Some other kind of error occured, like a read timeout, or
+                               // Some other kind of error occurred, like a read timeout, or
                                // corrupt chunked encoding. In any case, whatever remains
                                // on the wire must not be parsed as another HTTP request.
                                w.closeAfterReply = true
index feedb3420d8dade4ea1c707ddc56f6ca29e98799..03e9162b14f61d0ec6d53dab0c57b322758da4ba 100644 (file)
@@ -1357,7 +1357,7 @@ type writeRequest struct {
        req *transportRequest
        ch  chan<- error
 
-       // Optional blocking chan for Expect: 100-continue (for recieve).
+       // Optional blocking chan for Expect: 100-continue (for receive).
        // If not nil, writeLoop blocks sending request body until
        // it receives from this chan.
        continueCh <-chan struct{}
index 5c073da9910593683c4f23ac74c9257770115df7..2f7d48d5bdf06c57112815a0a3fbed1195e65a80 100644 (file)
@@ -177,7 +177,7 @@ func TestStatDir(t *testing.T) {
        }
 
        if !os.SameFile(fi, fi2) {
-               t.Fatal("race condition occured")
+               t.Fatal("race condition occurred")
        }
 }
 
index bc287c5ecb36a239951325d4dada452d3099b513..f627a94ddb90cf2585cab51d62688faa175bba47 100644 (file)
@@ -100,7 +100,7 @@ func walkSymlinks(path string) (string, error) {
                        return "", err
                }
                if runtime.GOOS == "windows" {
-                       // walkLinks(".", ...) always retuns "." on unix.
+                       // walkLinks(".", ...) always returns "." on unix.
                        // But on windows it returns symlink target, if current
                        // directory is a symlink. Stop the walk, if symlink
                        // target is not absolute path, and return "."
index 5be18beb2368c1cc072953ed86b8e030f4f6b822..063c5ce391d861c4eb1199765c54d9eea0c4a8d3 100644 (file)
@@ -421,7 +421,7 @@ func chanrecv(t *chantype, c *hchan, ep unsafe.Pointer, block bool) (selected, r
 
        if sg := c.sendq.dequeue(); sg != nil {
                // Found a waiting sender.  If buffer is size 0, receive value
-               // directly from sender.  Otherwise, recieve from head of queue
+               // directly from sender.  Otherwise, receive from head of queue
                // and add sender's value to the tail of the queue (both map to
                // the same buffer slot because the queue is full).
                recv(c, sg, ep, func() { unlock(&c.lock) })