]> Cypherpunks repositories - gostls13.git/commitdiff
doc: various "the the" and other typos
authorMatthew William Jibson <matt.jibson@gmail.com>
Sun, 8 Jul 2012 01:57:04 +0000 (11:57 +1000)
committerDavid Symonds <dsymonds@golang.org>
Sun, 8 Jul 2012 01:57:04 +0000 (11:57 +1000)
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/6355076

doc/articles/json_and_go.html
doc/go_spec.html
src/pkg/go/doc/testdata/error2.1.golden
src/pkg/go/doc/testdata/error2.go
src/pkg/math/remainder.go
src/pkg/net/http/fs.go
src/pkg/text/tabwriter/tabwriter.go
src/pkg/text/template/funcs.go

index af7776c0a47de8425dbf97ec10e5bf5eeb81ea1f..067e23ce970437e0bd0c6010b1702582b32c0f94 100644 (file)
@@ -82,8 +82,8 @@ is <code>nil</code>).
 
 <p>
 The json package only accesses the exported fields of struct types (those that
-begin with an uppercase letter). Therefore only the the exported fields of a
-struct will be present in the JSON output.
+begin with an uppercase letter). Therefore only the exported fields of a struct
+will be present in the JSON output.
 </p>
 
 <p>
index 57f2db7402c263c0f40bc42e4e38258b9596ee10..0f5e803da2a3a6e0663720a81e69726ac599363c 100644 (file)
@@ -2206,7 +2206,7 @@ Within a composite literal of array, slice, or map type <code>T</code>,
 elements that are themselves composite literals may elide the respective
 literal type if it is identical to the element type of <code>T</code>.
 Similarly, elements that are addresses of composite literals may elide
-the <code>&amp;T</code> when the the element type is <code>*T</code>.
+the <code>&amp;T</code> when the element type is <code>*T</code>.
 </p>
 
 
index 776bd1b3e40bd95566a173bbce07a0ba87f8ad9d..dbcc1b03e7891b7b03aa78d4fdffa03246244407 100644 (file)
@@ -10,7 +10,7 @@ FILENAMES
 TYPES
        // 
        type I0 interface {
-               // When embedded, the the locally declared error interface
+               // When embedded, the locally-declared error interface
                // is only visible if all declarations are shown.
                error
        }
index 6cc36feef3e8c15369550207a221bf9cc84eb6b9..6ee96c2450bce190e0ca75264689d04cd230f122 100644 (file)
@@ -5,7 +5,7 @@
 package error2
 
 type I0 interface {
-       // When embedded, the the locally declared error interface
+       // When embedded, the locally-declared error interface
        // is only visible if all declarations are shown.
        error
 }
index 41efd79085eba74d3c6cb74d1b5544831451b02d..9a4e4154c484102de2fcd1d8a9dab5ef9d607b02 100644 (file)
@@ -4,7 +4,7 @@
 
 package math
 
-// The original C code and the the comment below are from
+// The original C code and the comment below are from
 // FreeBSD's /usr/src/lib/msun/src/e_remainder.c and came
 // with this notice.  The go code is a simplified version of
 // the original C.
index 474a432d27fa5efb45e1320d9219bf84c8ba5f76..396bffe9c9e7eaa917f370c8f28e164c69a0935a 100644 (file)
@@ -154,7 +154,7 @@ func serveContent(w ResponseWriter, r *Request, name string, modtime time.Time,
                }
                if sumRangesSize(ranges) >= size {
                        // The total number of bytes in all the ranges
-                       // is larger the the size of the file by
+                       // is larger than the size of the file by
                        // itself, so this is probably an attack, or a
                        // dumb client.  Ignore the range request.
                        ranges = nil
index ce84600d6049562e877316456faaaf815acbe429..722ac8d877a7fecb5ce30ddc7088137daafc3809 100644 (file)
@@ -547,7 +547,7 @@ func (b *Writer) Write(buf []byte) (n int, err error) {
 }
 
 // NewWriter allocates and initializes a new tabwriter.Writer.
-// The parameters are the same as for the the Init function.
+// The parameters are the same as for the Init function.
 //
 func NewWriter(output io.Writer, minwidth, tabwidth, padding int, padchar byte, flags uint) *Writer {
        return new(Writer).Init(output, minwidth, tabwidth, padding, padchar, flags)
index 8fbf0ef50a765eac21e96f1524c0f0936368c24e..90fb9c52c080784796113f1851ebb30206819062 100644 (file)
@@ -154,7 +154,7 @@ func length(item interface{}) (int, error) {
 
 // Function invocation
 
-// call returns the result of evaluating the the first argument as a function.
+// call returns the result of evaluating the first argument as a function.
 // The function must return 1 result, or 2 results, the second of which is an error.
 func call(fn interface{}, args ...interface{}) (interface{}, error) {
        v := reflect.ValueOf(fn)