all: remove "the" duplications
Change-Id: I5dc9a8fa647ccb34caae9a1342012cb36d1fcc22
Reviewed-on: https://go-review.googlesource.com/94975
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
diff --git a/bpf/instructions.go b/bpf/instructions.go
index 3b4fd08..f9dc0e8 100644
--- a/bpf/instructions.go
+++ b/bpf/instructions.go
@@ -198,7 +198,7 @@
return assembleLoad(a.Dst, 4, opAddrModeImmediate, a.Val)
}
-// String returns the the instruction in assembler notation.
+// String returns the instruction in assembler notation.
func (a LoadConstant) String() string {
switch a.Dst {
case RegA:
@@ -224,7 +224,7 @@
return assembleLoad(a.Dst, 4, opAddrModeScratch, uint32(a.N))
}
-// String returns the the instruction in assembler notation.
+// String returns the instruction in assembler notation.
func (a LoadScratch) String() string {
switch a.Dst {
case RegA:
@@ -248,7 +248,7 @@
return assembleLoad(RegA, a.Size, opAddrModeAbsolute, a.Off)
}
-// String returns the the instruction in assembler notation.
+// String returns the instruction in assembler notation.
func (a LoadAbsolute) String() string {
switch a.Size {
case 1: // byte
@@ -277,7 +277,7 @@
return assembleLoad(RegA, a.Size, opAddrModeIndirect, a.Off)
}
-// String returns the the instruction in assembler notation.
+// String returns the instruction in assembler notation.
func (a LoadIndirect) String() string {
switch a.Size {
case 1: // byte
@@ -306,7 +306,7 @@
return assembleLoad(RegX, 1, opAddrModeMemShift, a.Off)
}
-// String returns the the instruction in assembler notation.
+// String returns the instruction in assembler notation.
func (a LoadMemShift) String() string {
return fmt.Sprintf("ldx 4*([%d]&0xf)", a.Off)
}
@@ -325,7 +325,7 @@
return assembleLoad(RegA, 4, opAddrModeAbsolute, uint32(extOffset+a.Num))
}
-// String returns the the instruction in assembler notation.
+// String returns the instruction in assembler notation.
func (a LoadExtension) String() string {
switch a.Num {
case ExtLen:
@@ -392,7 +392,7 @@
}, nil
}
-// String returns the the instruction in assembler notation.
+// String returns the instruction in assembler notation.
func (a StoreScratch) String() string {
switch a.Src {
case RegA:
@@ -418,7 +418,7 @@
}, nil
}
-// String returns the the instruction in assembler notation.
+// String returns the instruction in assembler notation.
func (a ALUOpConstant) String() string {
switch a.Op {
case ALUOpAdd:
@@ -458,7 +458,7 @@
}, nil
}
-// String returns the the instruction in assembler notation.
+// String returns the instruction in assembler notation.
func (a ALUOpX) String() string {
switch a.Op {
case ALUOpAdd:
@@ -496,7 +496,7 @@
}, nil
}
-// String returns the the instruction in assembler notation.
+// String returns the instruction in assembler notation.
func (a NegateA) String() string {
return fmt.Sprintf("neg")
}
@@ -514,7 +514,7 @@
}, nil
}
-// String returns the the instruction in assembler notation.
+// String returns the instruction in assembler notation.
func (a Jump) String() string {
return fmt.Sprintf("ja %d", a.Skip)
}
@@ -566,7 +566,7 @@
}, nil
}
-// String returns the the instruction in assembler notation.
+// String returns the instruction in assembler notation.
func (a JumpIf) String() string {
switch a.Cond {
// K == A
@@ -621,7 +621,7 @@
}, nil
}
-// String returns the the instruction in assembler notation.
+// String returns the instruction in assembler notation.
func (a RetA) String() string {
return fmt.Sprintf("ret a")
}
@@ -639,7 +639,7 @@
}, nil
}
-// String returns the the instruction in assembler notation.
+// String returns the instruction in assembler notation.
func (a RetConstant) String() string {
return fmt.Sprintf("ret #%d", a.Val)
}
@@ -654,7 +654,7 @@
}, nil
}
-// String returns the the instruction in assembler notation.
+// String returns the instruction in assembler notation.
func (a TXA) String() string {
return fmt.Sprintf("txa")
}
@@ -669,7 +669,7 @@
}, nil
}
-// String returns the the instruction in assembler notation.
+// String returns the instruction in assembler notation.
func (a TAX) String() string {
return fmt.Sprintf("tax")
}
diff --git a/http2/hpack/encode.go b/http2/hpack/encode.go
index 54726c2..1565cf2 100644
--- a/http2/hpack/encode.go
+++ b/http2/hpack/encode.go
@@ -206,7 +206,7 @@
}
// appendHpackString appends s, as encoded in "String Literal"
-// representation, to dst and returns the the extended buffer.
+// representation, to dst and returns the extended buffer.
//
// s will be encoded in Huffman codes only when it produces strictly
// shorter byte string.
diff --git a/http2/server.go b/http2/server.go
index c1013be..39ed755 100644
--- a/http2/server.go
+++ b/http2/server.go
@@ -406,7 +406,7 @@
// addresses during development.
//
// TODO: optionally enforce? Or enforce at the time we receive
- // a new request, and verify the the ServerName matches the :authority?
+ // a new request, and verify the ServerName matches the :authority?
// But that precludes proxy situations, perhaps.
//
// So for now, do nothing here again.
diff --git a/http2/server_test.go b/http2/server_test.go
index 0f94dac..c5d8459 100644
--- a/http2/server_test.go
+++ b/http2/server_test.go
@@ -2971,7 +2971,7 @@
defer st.Close()
st.greet()
- // Give the server quota to reply. (plus it has the the 64KB)
+ // Give the server quota to reply. (plus it has the 64KB)
if err := st.fr.WriteWindowUpdate(0, uint32(b.N*len(msg))); err != nil {
b.Fatal(err)
}
@@ -3009,7 +3009,7 @@
defer st.Close()
st.greet()
- // Give the server quota to reply. (plus it has the the 64KB)
+ // Give the server quota to reply. (plus it has the 64KB)
if err := st.fr.WriteWindowUpdate(0, uint32(b.N*len(msg))); err != nil {
b.Fatal(err)
}
@@ -3316,7 +3316,7 @@
defer st.Close()
st.greet()
- // Give the server quota to reply. (plus it has the the 64KB)
+ // Give the server quota to reply. (plus it has the 64KB)
if err := st.fr.WriteWindowUpdate(0, uint32(b.N*len(msg))); err != nil {
b.Fatal(err)
}
@@ -3347,7 +3347,7 @@
})
defer st.Close()
st.greet()
- // Give the server quota to reply. (plus it has the the 64KB)
+ // Give the server quota to reply. (plus it has the 64KB)
if err := st.fr.WriteWindowUpdate(0, uint32(b.N*len(msg))); err != nil {
b.Fatal(err)
}
diff --git a/http2/transport_test.go b/http2/transport_test.go
index adee48c..fe04bd2 100644
--- a/http2/transport_test.go
+++ b/http2/transport_test.go
@@ -1693,7 +1693,7 @@
ct.run()
}
-// Test that the the Transport returns a typed error from Response.Body.Read calls
+// Test that the Transport returns a typed error from Response.Body.Read calls
// when the server sends an error. (here we use a panic, since that should generate
// a stream error, but others like cancel should be similar)
func TestTransportBodyReadErrorType(t *testing.T) {