]> Cypherpunks repositories - gostls13.git/commitdiff
all: fix the the typos
authorShenghou Ma <minux.ma@gmail.com>
Wed, 21 Nov 2012 18:58:24 +0000 (02:58 +0800)
committerShenghou Ma <minux.ma@gmail.com>
Wed, 21 Nov 2012 18:58:24 +0000 (02:58 +0800)
Fixes #4420.

R=golang-dev, rsc, remyoudompheng
CC=golang-dev
https://golang.org/cl/6854080

src/pkg/container/ring/ring.go
src/pkg/encoding/binary/binary.go
src/pkg/encoding/csv/writer.go
src/pkg/exp/locale/collate/collate.go
src/pkg/go/printer/printer.go
src/pkg/html/template/js.go
src/pkg/image/jpeg/huffman.go
src/pkg/net/http/httptest/server.go
src/pkg/net/http/server.go
src/pkg/net/http/transport_test.go
src/pkg/reflect/type.go

index 1d96918d37bec8146a8e94f07568f7974095f760..6d3b3e5b322266bd5bebc90f949c564947ff9fa8 100644 (file)
@@ -74,7 +74,7 @@ func New(n int) *Ring {
        return r
 }
 
-// Link connects ring r with with ring s such that r.Next()
+// Link connects ring r with ring s such that r.Next()
 // becomes s and returns the original value for r.Next().
 // r must not be empty.
 //
index 06670141e16ee828214e5b057508cb954d5f3df1..04d5723c1e27c0d8a0d7eba95b275f258d4fdb1d 100644 (file)
@@ -184,7 +184,7 @@ func Read(r io.Reader, order ByteOrder, data interface{}) error {
 // values, or a pointer to such data.
 // Bytes written to w are encoded using the specified byte order
 // and read from successive fields of the data.
-// When writing structs, zero values are are written for fields
+// When writing structs, zero values are written for fields
 // with blank (_) field names.
 func Write(w io.Writer, order ByteOrder, data interface{}) error {
        // Fast path for basic types.
index 324944cc8299ff6ab3eac21629ac8b1b8404136f..17e485083e9d829b5cb815a3cbe43c11f2ac99c5 100644 (file)
@@ -22,7 +22,7 @@ import (
 //
 // If UseCRLF is true, the Writer ends each record with \r\n instead of \n.
 type Writer struct {
-       Comma   rune // Field delimiter (set to to ',' by NewWriter)
+       Comma   rune // Field delimiter (set to ',' by NewWriter)
        UseCRLF bool // True to use \r\n as the line terminator
        w       *bufio.Writer
 }
index a08dcae0d5f84f3ae219eeafb324532bcf5ed212..8a5c9dc7a86a88ad7ef4bacc3997f68709dc8296 100644 (file)
@@ -450,7 +450,7 @@ func (c *Collator) keyFromElems(buf *Buffer, ws []colElem) {
                }
                // Derive the quaternary weights from the options and other levels.
                // Note that we represent maxQuaternary as 0xFF. The first byte of the
-               // representation of a primary weight is always smaller than 0xFF,
+               // representation of a primary weight is always smaller than 0xFF,
                // so using this single byte value will compare correctly.
                if Quaternary <= c.Strength && c.Alternate >= AltShifted {
                        if c.Alternate == AltShiftTrimmed {
index e79e3ffda2629fa15d9374339188a9abf6b8a8d3..990655e716044896ecaa1ab57e1522f261618164 100644 (file)
@@ -452,7 +452,7 @@ func trimRight(s string) string {
 
 // stripCommonPrefix removes a common prefix from /*-style comment lines (unless no
 // comment line is indented, all but the first line have some form of space prefix).
-// The prefix is computed using heuristics such that is is likely that the comment
+// The prefix is computed using heuristics such that is likely that the comment
 // contents are nicely laid out after re-printing each line using the printer's
 // current indentation.
 //
index a895a50aa9025da8b72482ad9045d84fb5a52e67..a9740931fc2aaee247cb4986dc0bf8ac8dd2057f 100644 (file)
@@ -14,7 +14,7 @@ import (
 )
 
 // nextJSCtx returns the context that determines whether a slash after the
-// given run of tokens tokens starts a regular expression instead of a division
+// given run of tokens starts a regular expression instead of a division
 // operator: / or /=.
 //
 // This assumes that the token run does not include any string tokens, comment
index 2fc64ade546dd82db9a4a0eb7c5557391de76533..9b731fdc4fa590eddbacf00cc078037870f82d23 100644 (file)
@@ -163,7 +163,7 @@ func (d *decoder) processDHT(n int) error {
 
 // Returns the next Huffman-coded value from the bit stream, decoded according to h.
 // TODO(nigeltao): This decoding algorithm is simple, but slow. A lookahead table, instead of always
-// peeling off only 1 bit at at time, ought to be faster.
+// peeling off only 1 bit at time, ought to be faster.
 func (d *decoder) decodeHuffman(h *huffman) (uint8, error) {
        if h.length == 0 {
                return 0, FormatError("uninitialized Huffman table")
index 165600e52beba14cb12610f98ba73538d5bb0f02..0997a8a2321bf8efbb0f7813662139142a7ca87f 100644 (file)
@@ -21,7 +21,7 @@ import (
 type Server struct {
        URL      string // base URL of form http://ipaddr:port with no trailing slash
        Listener net.Listener
-       TLS      *tls.Config // nil if not using using TLS
+       TLS      *tls.Config // nil if not using TLS
 
        // Config may be changed after calling NewUnstartedServer and
        // before Start or StartTLS.
index 719cecfbdaade59addf7d8015dbead7ac66eca39..805e0737a974fc41e0353eb68f6d1b004f767b4c 100644 (file)
@@ -127,7 +127,7 @@ type response struct {
 
        // requestBodyLimitHit is set by requestTooLarge when
        // maxBytesReader hits its max size. It is checked in
-       // WriteHeader, to make sure we don't consume the the
+       // WriteHeader, to make sure we don't consume the
        // remaining request body to try to advance to the next HTTP
        // request. Instead, when this is set, we stop reading
        // subsequent requests on this connection and stop reading
index e4072e88fed3af54e08fa5652d9cd125a44ca617..e114e71480d128a38c7177e917c1995959a97976 100644 (file)
@@ -281,7 +281,7 @@ func TestTransportMaxPerHostIdleConns(t *testing.T) {
        c := &Client{Transport: tr}
 
        // Start 3 outstanding requests and wait for the server to get them.
-       // Their responses will hang until we we write to resch, though.
+       // Their responses will hang until we write to resch, though.
        donech := make(chan bool)
        doReq := func() {
                resp, err := c.Get(ts.URL)
index 110141955c20a0092fcfac9d9b9166dc14db4473..6c7571b28fdddb7fc7f7de33a9f5c3dd4750fe86 100644 (file)
@@ -1338,7 +1338,7 @@ func cachePut(k cacheKey, t *rtype) Type {
        return t
 }
 
-// ChanOf returns the channel type with the given direction and and element type.
+// ChanOf returns the channel type with the given direction and element type.
 // For example, if t represents int, ChanOf(RecvDir, t) represents <-chan int.
 //
 // The gc runtime imposes a limit of 64 kB on channel element types.