Skip to content

Commit cbe0f93

Browse files
namusyakabradfitz
authored andcommitted
all: remove "the" duplications
Change-Id: I5dc9a8fa647ccb34caae9a1342012cb36d1fcc22 Reviewed-on: https://go-review.googlesource.com/94975 Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent 136a25c commit cbe0f93

File tree

5 files changed

+23
-23
lines changed

5 files changed

+23
-23
lines changed

bpf/instructions.go

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ func (a LoadConstant) Assemble() (RawInstruction, error) {
198198
return assembleLoad(a.Dst, 4, opAddrModeImmediate, a.Val)
199199
}
200200

201-
// String returns the the instruction in assembler notation.
201+
// String returns the instruction in assembler notation.
202202
func (a LoadConstant) String() string {
203203
switch a.Dst {
204204
case RegA:
@@ -224,7 +224,7 @@ func (a LoadScratch) Assemble() (RawInstruction, error) {
224224
return assembleLoad(a.Dst, 4, opAddrModeScratch, uint32(a.N))
225225
}
226226

227-
// String returns the the instruction in assembler notation.
227+
// String returns the instruction in assembler notation.
228228
func (a LoadScratch) String() string {
229229
switch a.Dst {
230230
case RegA:
@@ -248,7 +248,7 @@ func (a LoadAbsolute) Assemble() (RawInstruction, error) {
248248
return assembleLoad(RegA, a.Size, opAddrModeAbsolute, a.Off)
249249
}
250250

251-
// String returns the the instruction in assembler notation.
251+
// String returns the instruction in assembler notation.
252252
func (a LoadAbsolute) String() string {
253253
switch a.Size {
254254
case 1: // byte
@@ -277,7 +277,7 @@ func (a LoadIndirect) Assemble() (RawInstruction, error) {
277277
return assembleLoad(RegA, a.Size, opAddrModeIndirect, a.Off)
278278
}
279279

280-
// String returns the the instruction in assembler notation.
280+
// String returns the instruction in assembler notation.
281281
func (a LoadIndirect) String() string {
282282
switch a.Size {
283283
case 1: // byte
@@ -306,7 +306,7 @@ func (a LoadMemShift) Assemble() (RawInstruction, error) {
306306
return assembleLoad(RegX, 1, opAddrModeMemShift, a.Off)
307307
}
308308

309-
// String returns the the instruction in assembler notation.
309+
// String returns the instruction in assembler notation.
310310
func (a LoadMemShift) String() string {
311311
return fmt.Sprintf("ldx 4*([%d]&0xf)", a.Off)
312312
}
@@ -325,7 +325,7 @@ func (a LoadExtension) Assemble() (RawInstruction, error) {
325325
return assembleLoad(RegA, 4, opAddrModeAbsolute, uint32(extOffset+a.Num))
326326
}
327327

328-
// String returns the the instruction in assembler notation.
328+
// String returns the instruction in assembler notation.
329329
func (a LoadExtension) String() string {
330330
switch a.Num {
331331
case ExtLen:
@@ -392,7 +392,7 @@ func (a StoreScratch) Assemble() (RawInstruction, error) {
392392
}, nil
393393
}
394394

395-
// String returns the the instruction in assembler notation.
395+
// String returns the instruction in assembler notation.
396396
func (a StoreScratch) String() string {
397397
switch a.Src {
398398
case RegA:
@@ -418,7 +418,7 @@ func (a ALUOpConstant) Assemble() (RawInstruction, error) {
418418
}, nil
419419
}
420420

421-
// String returns the the instruction in assembler notation.
421+
// String returns the instruction in assembler notation.
422422
func (a ALUOpConstant) String() string {
423423
switch a.Op {
424424
case ALUOpAdd:
@@ -458,7 +458,7 @@ func (a ALUOpX) Assemble() (RawInstruction, error) {
458458
}, nil
459459
}
460460

461-
// String returns the the instruction in assembler notation.
461+
// String returns the instruction in assembler notation.
462462
func (a ALUOpX) String() string {
463463
switch a.Op {
464464
case ALUOpAdd:
@@ -496,7 +496,7 @@ func (a NegateA) Assemble() (RawInstruction, error) {
496496
}, nil
497497
}
498498

499-
// String returns the the instruction in assembler notation.
499+
// String returns the instruction in assembler notation.
500500
func (a NegateA) String() string {
501501
return fmt.Sprintf("neg")
502502
}
@@ -514,7 +514,7 @@ func (a Jump) Assemble() (RawInstruction, error) {
514514
}, nil
515515
}
516516

517-
// String returns the the instruction in assembler notation.
517+
// String returns the instruction in assembler notation.
518518
func (a Jump) String() string {
519519
return fmt.Sprintf("ja %d", a.Skip)
520520
}
@@ -566,7 +566,7 @@ func (a JumpIf) Assemble() (RawInstruction, error) {
566566
}, nil
567567
}
568568

569-
// String returns the the instruction in assembler notation.
569+
// String returns the instruction in assembler notation.
570570
func (a JumpIf) String() string {
571571
switch a.Cond {
572572
// K == A
@@ -621,7 +621,7 @@ func (a RetA) Assemble() (RawInstruction, error) {
621621
}, nil
622622
}
623623

624-
// String returns the the instruction in assembler notation.
624+
// String returns the instruction in assembler notation.
625625
func (a RetA) String() string {
626626
return fmt.Sprintf("ret a")
627627
}
@@ -639,7 +639,7 @@ func (a RetConstant) Assemble() (RawInstruction, error) {
639639
}, nil
640640
}
641641

642-
// String returns the the instruction in assembler notation.
642+
// String returns the instruction in assembler notation.
643643
func (a RetConstant) String() string {
644644
return fmt.Sprintf("ret #%d", a.Val)
645645
}
@@ -654,7 +654,7 @@ func (a TXA) Assemble() (RawInstruction, error) {
654654
}, nil
655655
}
656656

657-
// String returns the the instruction in assembler notation.
657+
// String returns the instruction in assembler notation.
658658
func (a TXA) String() string {
659659
return fmt.Sprintf("txa")
660660
}
@@ -669,7 +669,7 @@ func (a TAX) Assemble() (RawInstruction, error) {
669669
}, nil
670670
}
671671

672-
// String returns the the instruction in assembler notation.
672+
// String returns the instruction in assembler notation.
673673
func (a TAX) String() string {
674674
return fmt.Sprintf("tax")
675675
}

http2/hpack/encode.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ func appendVarInt(dst []byte, n byte, i uint64) []byte {
206206
}
207207

208208
// appendHpackString appends s, as encoded in "String Literal"
209-
// representation, to dst and returns the the extended buffer.
209+
// representation, to dst and returns the extended buffer.
210210
//
211211
// s will be encoded in Huffman codes only when it produces strictly
212212
// shorter byte string.

http2/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ func (s *Server) ServeConn(c net.Conn, opts *ServeConnOpts) {
406406
// addresses during development.
407407
//
408408
// TODO: optionally enforce? Or enforce at the time we receive
409-
// a new request, and verify the the ServerName matches the :authority?
409+
// a new request, and verify the ServerName matches the :authority?
410410
// But that precludes proxy situations, perhaps.
411411
//
412412
// So for now, do nothing here again.

http2/server_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2971,7 +2971,7 @@ func BenchmarkServerGets(b *testing.B) {
29712971
defer st.Close()
29722972
st.greet()
29732973

2974-
// Give the server quota to reply. (plus it has the the 64KB)
2974+
// Give the server quota to reply. (plus it has the 64KB)
29752975
if err := st.fr.WriteWindowUpdate(0, uint32(b.N*len(msg))); err != nil {
29762976
b.Fatal(err)
29772977
}
@@ -3009,7 +3009,7 @@ func BenchmarkServerPosts(b *testing.B) {
30093009
defer st.Close()
30103010
st.greet()
30113011

3012-
// Give the server quota to reply. (plus it has the the 64KB)
3012+
// Give the server quota to reply. (plus it has the 64KB)
30133013
if err := st.fr.WriteWindowUpdate(0, uint32(b.N*len(msg))); err != nil {
30143014
b.Fatal(err)
30153015
}
@@ -3316,7 +3316,7 @@ func BenchmarkServer_GetRequest(b *testing.B) {
33163316
defer st.Close()
33173317

33183318
st.greet()
3319-
// Give the server quota to reply. (plus it has the the 64KB)
3319+
// Give the server quota to reply. (plus it has the 64KB)
33203320
if err := st.fr.WriteWindowUpdate(0, uint32(b.N*len(msg))); err != nil {
33213321
b.Fatal(err)
33223322
}
@@ -3347,7 +3347,7 @@ func BenchmarkServer_PostRequest(b *testing.B) {
33473347
})
33483348
defer st.Close()
33493349
st.greet()
3350-
// Give the server quota to reply. (plus it has the the 64KB)
3350+
// Give the server quota to reply. (plus it has the 64KB)
33513351
if err := st.fr.WriteWindowUpdate(0, uint32(b.N*len(msg))); err != nil {
33523352
b.Fatal(err)
33533353
}

http2/transport_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1693,7 +1693,7 @@ func TestTransportChecksResponseHeaderListSize(t *testing.T) {
16931693
ct.run()
16941694
}
16951695

1696-
// Test that the the Transport returns a typed error from Response.Body.Read calls
1696+
// Test that the Transport returns a typed error from Response.Body.Read calls
16971697
// when the server sends an error. (here we use a panic, since that should generate
16981698
// a stream error, but others like cancel should be similar)
16991699
func TestTransportBodyReadErrorType(t *testing.T) {

0 commit comments

Comments
 (0)