Commit f83a47cb authored by Matthew William Jibson's avatar Matthew William Jibson Committed by David Symonds

doc: various "the the" and other typos

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/6355076
parent 3be9f0b3
...@@ -82,8 +82,8 @@ is <code>nil</code>). ...@@ -82,8 +82,8 @@ is <code>nil</code>).
<p> <p>
The json package only accesses the exported fields of struct types (those that 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 begin with an uppercase letter). Therefore only the exported fields of a struct
struct will be present in the JSON output. will be present in the JSON output.
</p> </p>
<p> <p>
......
...@@ -2206,7 +2206,7 @@ Within a composite literal of array, slice, or map type <code>T</code>, ...@@ -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 elements that are themselves composite literals may elide the respective
literal type if it is identical to the element type of <code>T</code>. literal type if it is identical to the element type of <code>T</code>.
Similarly, elements that are addresses of composite literals may elide 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> </p>
......
...@@ -10,7 +10,7 @@ FILENAMES ...@@ -10,7 +10,7 @@ FILENAMES
TYPES TYPES
// //
type I0 interface { 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. // is only visible if all declarations are shown.
error error
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
package error2 package error2
type I0 interface { 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. // is only visible if all declarations are shown.
error error
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
package math 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 // FreeBSD's /usr/src/lib/msun/src/e_remainder.c and came
// with this notice. The go code is a simplified version of // with this notice. The go code is a simplified version of
// the original C. // the original C.
......
...@@ -154,7 +154,7 @@ func serveContent(w ResponseWriter, r *Request, name string, modtime time.Time, ...@@ -154,7 +154,7 @@ func serveContent(w ResponseWriter, r *Request, name string, modtime time.Time,
} }
if sumRangesSize(ranges) >= size { if sumRangesSize(ranges) >= size {
// The total number of bytes in all the ranges // 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 // itself, so this is probably an attack, or a
// dumb client. Ignore the range request. // dumb client. Ignore the range request.
ranges = nil ranges = nil
......
...@@ -547,7 +547,7 @@ func (b *Writer) Write(buf []byte) (n int, err error) { ...@@ -547,7 +547,7 @@ func (b *Writer) Write(buf []byte) (n int, err error) {
} }
// NewWriter allocates and initializes a new tabwriter.Writer. // 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 { func NewWriter(output io.Writer, minwidth, tabwidth, padding int, padchar byte, flags uint) *Writer {
return new(Writer).Init(output, minwidth, tabwidth, padding, padchar, flags) return new(Writer).Init(output, minwidth, tabwidth, padding, padchar, flags)
......
...@@ -154,7 +154,7 @@ func length(item interface{}) (int, error) { ...@@ -154,7 +154,7 @@ func length(item interface{}) (int, error) {
// Function invocation // 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. // The function must return 1 result, or 2 results, the second of which is an error.
func call(fn interface{}, args ...interface{}) (interface{}, error) { func call(fn interface{}, args ...interface{}) (interface{}, error) {
v := reflect.ValueOf(fn) v := reflect.ValueOf(fn)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment