Commit cbe0f930 authored by namusyaka's avatar namusyaka Committed by Brad Fitzpatrick

all: remove "the" duplications

Change-Id: I5dc9a8fa647ccb34caae9a1342012cb36d1fcc22
Reviewed-on: https://go-review.googlesource.com/94975Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 136a25c2
...@@ -198,7 +198,7 @@ func (a LoadConstant) Assemble() (RawInstruction, error) { ...@@ -198,7 +198,7 @@ func (a LoadConstant) Assemble() (RawInstruction, error) {
return assembleLoad(a.Dst, 4, opAddrModeImmediate, a.Val) 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 { func (a LoadConstant) String() string {
switch a.Dst { switch a.Dst {
case RegA: case RegA:
...@@ -224,7 +224,7 @@ func (a LoadScratch) Assemble() (RawInstruction, error) { ...@@ -224,7 +224,7 @@ func (a LoadScratch) Assemble() (RawInstruction, error) {
return assembleLoad(a.Dst, 4, opAddrModeScratch, uint32(a.N)) 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 { func (a LoadScratch) String() string {
switch a.Dst { switch a.Dst {
case RegA: case RegA:
...@@ -248,7 +248,7 @@ func (a LoadAbsolute) Assemble() (RawInstruction, error) { ...@@ -248,7 +248,7 @@ func (a LoadAbsolute) Assemble() (RawInstruction, error) {
return assembleLoad(RegA, a.Size, opAddrModeAbsolute, a.Off) 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 { func (a LoadAbsolute) String() string {
switch a.Size { switch a.Size {
case 1: // byte case 1: // byte
...@@ -277,7 +277,7 @@ func (a LoadIndirect) Assemble() (RawInstruction, error) { ...@@ -277,7 +277,7 @@ func (a LoadIndirect) Assemble() (RawInstruction, error) {
return assembleLoad(RegA, a.Size, opAddrModeIndirect, a.Off) 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 { func (a LoadIndirect) String() string {
switch a.Size { switch a.Size {
case 1: // byte case 1: // byte
...@@ -306,7 +306,7 @@ func (a LoadMemShift) Assemble() (RawInstruction, error) { ...@@ -306,7 +306,7 @@ func (a LoadMemShift) Assemble() (RawInstruction, error) {
return assembleLoad(RegX, 1, opAddrModeMemShift, a.Off) 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 { func (a LoadMemShift) String() string {
return fmt.Sprintf("ldx 4*([%d]&0xf)", a.Off) return fmt.Sprintf("ldx 4*([%d]&0xf)", a.Off)
} }
...@@ -325,7 +325,7 @@ func (a LoadExtension) Assemble() (RawInstruction, error) { ...@@ -325,7 +325,7 @@ func (a LoadExtension) Assemble() (RawInstruction, error) {
return assembleLoad(RegA, 4, opAddrModeAbsolute, uint32(extOffset+a.Num)) 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 { func (a LoadExtension) String() string {
switch a.Num { switch a.Num {
case ExtLen: case ExtLen:
...@@ -392,7 +392,7 @@ func (a StoreScratch) Assemble() (RawInstruction, error) { ...@@ -392,7 +392,7 @@ func (a StoreScratch) Assemble() (RawInstruction, error) {
}, nil }, nil
} }
// String returns the the instruction in assembler notation. // String returns the instruction in assembler notation.
func (a StoreScratch) String() string { func (a StoreScratch) String() string {
switch a.Src { switch a.Src {
case RegA: case RegA:
...@@ -418,7 +418,7 @@ func (a ALUOpConstant) Assemble() (RawInstruction, error) { ...@@ -418,7 +418,7 @@ func (a ALUOpConstant) Assemble() (RawInstruction, error) {
}, nil }, nil
} }
// String returns the the instruction in assembler notation. // String returns the instruction in assembler notation.
func (a ALUOpConstant) String() string { func (a ALUOpConstant) String() string {
switch a.Op { switch a.Op {
case ALUOpAdd: case ALUOpAdd:
...@@ -458,7 +458,7 @@ func (a ALUOpX) Assemble() (RawInstruction, error) { ...@@ -458,7 +458,7 @@ func (a ALUOpX) Assemble() (RawInstruction, error) {
}, nil }, nil
} }
// String returns the the instruction in assembler notation. // String returns the instruction in assembler notation.
func (a ALUOpX) String() string { func (a ALUOpX) String() string {
switch a.Op { switch a.Op {
case ALUOpAdd: case ALUOpAdd:
...@@ -496,7 +496,7 @@ func (a NegateA) Assemble() (RawInstruction, error) { ...@@ -496,7 +496,7 @@ func (a NegateA) Assemble() (RawInstruction, error) {
}, nil }, nil
} }
// String returns the the instruction in assembler notation. // String returns the instruction in assembler notation.
func (a NegateA) String() string { func (a NegateA) String() string {
return fmt.Sprintf("neg") return fmt.Sprintf("neg")
} }
...@@ -514,7 +514,7 @@ func (a Jump) Assemble() (RawInstruction, error) { ...@@ -514,7 +514,7 @@ func (a Jump) Assemble() (RawInstruction, error) {
}, nil }, nil
} }
// String returns the the instruction in assembler notation. // String returns the instruction in assembler notation.
func (a Jump) String() string { func (a Jump) String() string {
return fmt.Sprintf("ja %d", a.Skip) return fmt.Sprintf("ja %d", a.Skip)
} }
...@@ -566,7 +566,7 @@ func (a JumpIf) Assemble() (RawInstruction, error) { ...@@ -566,7 +566,7 @@ func (a JumpIf) Assemble() (RawInstruction, error) {
}, nil }, nil
} }
// String returns the the instruction in assembler notation. // String returns the instruction in assembler notation.
func (a JumpIf) String() string { func (a JumpIf) String() string {
switch a.Cond { switch a.Cond {
// K == A // K == A
...@@ -621,7 +621,7 @@ func (a RetA) Assemble() (RawInstruction, error) { ...@@ -621,7 +621,7 @@ func (a RetA) Assemble() (RawInstruction, error) {
}, nil }, nil
} }
// String returns the the instruction in assembler notation. // String returns the instruction in assembler notation.
func (a RetA) String() string { func (a RetA) String() string {
return fmt.Sprintf("ret a") return fmt.Sprintf("ret a")
} }
...@@ -639,7 +639,7 @@ func (a RetConstant) Assemble() (RawInstruction, error) { ...@@ -639,7 +639,7 @@ func (a RetConstant) Assemble() (RawInstruction, error) {
}, nil }, nil
} }
// String returns the the instruction in assembler notation. // String returns the instruction in assembler notation.
func (a RetConstant) String() string { func (a RetConstant) String() string {
return fmt.Sprintf("ret #%d", a.Val) return fmt.Sprintf("ret #%d", a.Val)
} }
...@@ -654,7 +654,7 @@ func (a TXA) Assemble() (RawInstruction, error) { ...@@ -654,7 +654,7 @@ func (a TXA) Assemble() (RawInstruction, error) {
}, nil }, nil
} }
// String returns the the instruction in assembler notation. // String returns the instruction in assembler notation.
func (a TXA) String() string { func (a TXA) String() string {
return fmt.Sprintf("txa") return fmt.Sprintf("txa")
} }
...@@ -669,7 +669,7 @@ func (a TAX) Assemble() (RawInstruction, error) { ...@@ -669,7 +669,7 @@ func (a TAX) Assemble() (RawInstruction, error) {
}, nil }, nil
} }
// String returns the the instruction in assembler notation. // String returns the instruction in assembler notation.
func (a TAX) String() string { func (a TAX) String() string {
return fmt.Sprintf("tax") return fmt.Sprintf("tax")
} }
......
...@@ -206,7 +206,7 @@ func appendVarInt(dst []byte, n byte, i uint64) []byte { ...@@ -206,7 +206,7 @@ func appendVarInt(dst []byte, n byte, i uint64) []byte {
} }
// appendHpackString appends s, as encoded in "String Literal" // 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 // s will be encoded in Huffman codes only when it produces strictly
// shorter byte string. // shorter byte string.
......
...@@ -406,7 +406,7 @@ func (s *Server) ServeConn(c net.Conn, opts *ServeConnOpts) { ...@@ -406,7 +406,7 @@ func (s *Server) ServeConn(c net.Conn, opts *ServeConnOpts) {
// addresses during development. // addresses during development.
// //
// TODO: optionally enforce? Or enforce at the time we receive // 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. // But that precludes proxy situations, perhaps.
// //
// So for now, do nothing here again. // So for now, do nothing here again.
......
...@@ -2971,7 +2971,7 @@ func BenchmarkServerGets(b *testing.B) { ...@@ -2971,7 +2971,7 @@ func BenchmarkServerGets(b *testing.B) {
defer st.Close() defer st.Close()
st.greet() 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 { if err := st.fr.WriteWindowUpdate(0, uint32(b.N*len(msg))); err != nil {
b.Fatal(err) b.Fatal(err)
} }
...@@ -3009,7 +3009,7 @@ func BenchmarkServerPosts(b *testing.B) { ...@@ -3009,7 +3009,7 @@ func BenchmarkServerPosts(b *testing.B) {
defer st.Close() defer st.Close()
st.greet() 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 { if err := st.fr.WriteWindowUpdate(0, uint32(b.N*len(msg))); err != nil {
b.Fatal(err) b.Fatal(err)
} }
...@@ -3316,7 +3316,7 @@ func BenchmarkServer_GetRequest(b *testing.B) { ...@@ -3316,7 +3316,7 @@ func BenchmarkServer_GetRequest(b *testing.B) {
defer st.Close() defer st.Close()
st.greet() 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 { if err := st.fr.WriteWindowUpdate(0, uint32(b.N*len(msg))); err != nil {
b.Fatal(err) b.Fatal(err)
} }
...@@ -3347,7 +3347,7 @@ func BenchmarkServer_PostRequest(b *testing.B) { ...@@ -3347,7 +3347,7 @@ func BenchmarkServer_PostRequest(b *testing.B) {
}) })
defer st.Close() defer st.Close()
st.greet() 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 { if err := st.fr.WriteWindowUpdate(0, uint32(b.N*len(msg))); err != nil {
b.Fatal(err) b.Fatal(err)
} }
......
...@@ -1693,7 +1693,7 @@ func TestTransportChecksResponseHeaderListSize(t *testing.T) { ...@@ -1693,7 +1693,7 @@ func TestTransportChecksResponseHeaderListSize(t *testing.T) {
ct.run() 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 // 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) // a stream error, but others like cancel should be similar)
func TestTransportBodyReadErrorType(t *testing.T) { func TestTransportBodyReadErrorType(t *testing.T) {
......
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