]> Cypherpunks repositories - gostls13.git/commitdiff
all: fix typos
authorRui Ueyama <ruiu@google.com>
Wed, 16 Apr 2014 23:57:25 +0000 (16:57 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 16 Apr 2014 23:57:25 +0000 (16:57 -0700)
LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/88670043

src/pkg/archive/tar/reader.go
src/pkg/container/list/example_test.go
src/pkg/crypto/cipher/benchmark_test.go
src/pkg/debug/goobj/read.go
src/pkg/encoding/base32/base32.go
src/pkg/mime/multipart/quotedprintable_test.go
src/pkg/net/http/client_test.go
src/pkg/time/format.go

index 61d410a9af0b49b1a72015df27cb47623edc974c..d15e12079240da7ae0deca40d5ae6a2e5e6053eb 100644 (file)
@@ -334,7 +334,7 @@ func parsePAX(r io.Reader) (map[string]string, error) {
                        return nil, ErrHeader
                }
                // Extract everything between the decimal and the n -1 on the
-               // beginning to to eat the ' ', -1 on the end to skip the newline.
+               // beginning to eat the ' ', -1 on the end to skip the newline.
                var record []byte
                record, buf = buf[sp+1:n-1], buf[n:]
                // The first equals is guaranteed to mark the end of the key.
index 7361212d73353e402aa9dc868c21b425474dd44c..362178401716d7ffffa896ed0b044ef04ecc1541 100644 (file)
@@ -17,7 +17,7 @@ func Example() {
        l.InsertBefore(3, e4)
        l.InsertAfter(2, e1)
 
-       // Iterate through list and and print its contents.
+       // Iterate through list and print its contents.
        for e := l.Front(); e != nil; e = e.Next() {
                fmt.Println(e.Value)
        }
index 0b173a4f3f228710c832efb9b22a44ff3c1f6194..027b24851055080af962b010609e510d7c7c8b36 100644 (file)
@@ -47,7 +47,7 @@ func BenchmarkAESGCMOpen1K(b *testing.B) {
 }
 
 // If we test exactly 1K blocks, we would generate exact multiples of
-// the cipher's block size, and and the cipher stream fragments would
+// the cipher's block size, and the cipher stream fragments would
 // always be wordsize aligned, whereas non-aligned is a more typical
 // use-case.
 const almost1K = 1024 - 5
index c2e6fa09274f86516d52c584c8b9c6bf718b5dd3..c2d606841ab57f064e8d9dfccb82c34dc95c9e49 100644 (file)
@@ -188,7 +188,7 @@ type Var struct {
 
 // Func contains additional per-symbol information specific to functions.
 type Func struct {
-       Args     int        // size in bytes of of argument frame: inputs and outputs
+       Args     int        // size in bytes of argument frame: inputs and outputs
        Frame    int        // size in bytes of local variable frame
        Leaf     bool       // function omits save of link register (ARM)
        Var      []Var      // detail about local variables
index be3a6e602b78cae7c66388d044ff4224a3817f8f..d770de3915fb09df4ca74e7895c864b6444380e7 100644 (file)
@@ -266,7 +266,7 @@ func (enc *Encoding) decode(dst, src []byte) (n int, end bool, err error) {
                                // 7, 5 and 2 are not valid padding lengths, and so 1, 3 and 6 are not
                                // valid dlen values. See RFC 4648 Section 6 "Base 32 Encoding" listing
                                // the five valid padding lengths, and Section 9 "Illustrations and
-                               // Examples" for an illustration for how the the 1st, 3rd and 6th base32
+                               // Examples" for an illustration for how the 1st, 3rd and 6th base32
                                // src bytes do not yield enough information to decode a dst byte.
                                if dlen == 1 || dlen == 3 || dlen == 6 {
                                        return n, false, CorruptInputError(olen - len(src) - 1)
index 8a95f7f037b65291215f6d63f6e6f27dc898ea31..c4de3eb756634e4b10ab683409f24cff0cc317b1 100644 (file)
@@ -131,7 +131,7 @@ func TestQPExhaustive(t *testing.T) {
                                        return
                                }
                                if strings.HasSuffix(errStr, "0x0a") || strings.HasSuffix(errStr, "0x0d") {
-                                       // bunch of cases; since whitespace at the end of of a line before \n is removed.
+                                       // bunch of cases; since whitespace at the end of a line before \n is removed.
                                        return
                                }
                        }
index 7548eef65febc7843c452925de637752f0d9739e..6392c1baf39cdf83852a51e0aca8feb9cd9a1e23 100644 (file)
@@ -987,7 +987,7 @@ func TestClientTrailers(t *testing.T) {
                // TODO: golang.org/issue/7759: there's no way yet for
                // the server to set trailers without hijacking, so do
                // that for now, just to test the client.  Later, in
-               // Go 1.4, it should be be implicit that any mutations
+               // Go 1.4, it should be implicit that any mutations
                // to w.Header() after the initial write are the
                // trailers to be sent, if and only if they were
                // previously declared with w.Header().Set("Trailer",
index b9da7ba42a72b72f9b3229fddb7fe9b8102076e6..555edd5cef01183ec23947ca9a99feb6de842b24 100644 (file)
@@ -102,7 +102,7 @@ const (
 // std0x records the std values for "01", "02", ..., "06".
 var std0x = [...]int{stdZeroMonth, stdZeroDay, stdZeroHour12, stdZeroMinute, stdZeroSecond, stdYear}
 
-// startsWithLowerCase reports whether the the string has a lower-case letter at the beginning.
+// startsWithLowerCase reports whether the string has a lower-case letter at the beginning.
 // Its purpose is to prevent matching strings like "Month" when looking for "Mon".
 func startsWithLowerCase(str string) bool {
        if len(str) == 0 {