Skip to content

Commit d1aa605

Browse files
jsvisakaralabe
authored andcommitted
all: remove the duplicate 'the' in annotations (ethereum#17509)
1 parent 70398d3 commit d1aa605

File tree

17 files changed

+20
-20
lines changed

17 files changed

+20
-20
lines changed

accounts/abi/bind/bind.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ func bindTypeGo(kind abi.Type) string {
207207

208208
// The inner function of bindTypeGo, this finds the inner type of stringKind.
209209
// (Or just the type itself if it is not an array or slice)
210-
// The length of the matched part is returned, with the the translated type.
210+
// The length of the matched part is returned, with the translated type.
211211
func bindUnnestedTypeGo(stringKind string) (int, string) {
212212

213213
switch {
@@ -255,7 +255,7 @@ func bindTypeJava(kind abi.Type) string {
255255

256256
// The inner function of bindTypeJava, this finds the inner type of stringKind.
257257
// (Or just the type itself if it is not an array or slice)
258-
// The length of the matched part is returned, with the the translated type.
258+
// The length of the matched part is returned, with the translated type.
259259
func bindUnnestedTypeJava(stringKind string) (int, string) {
260260

261261
switch {

cmd/wnode/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ func extractIDFromEnode(s string) []byte {
754754
return n.ID[:]
755755
}
756756

757-
// obfuscateBloom adds 16 random bits to the the bloom
757+
// obfuscateBloom adds 16 random bits to the bloom
758758
// filter, in order to obfuscate the containing topics.
759759
// it does so deterministically within every session.
760760
// despite additional bits, it will match on average

common/bitutil/compress_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func TestDecodingCycle(t *testing.T) {
117117
// TestCompression tests that compression works by returning either the bitset
118118
// encoded input, or the actual input if the bitset version is longer.
119119
func TestCompression(t *testing.T) {
120-
// Check the the compression returns the bitset encoding is shorter
120+
// Check the compression returns the bitset encoding is shorter
121121
in := hexutil.MustDecode("0x4912385c0e7b64000000")
122122
out := hexutil.MustDecode("0x80fe4912385c0e7b64")
123123

@@ -127,7 +127,7 @@ func TestCompression(t *testing.T) {
127127
if data, err := DecompressBytes(out, len(in)); err != nil || !bytes.Equal(data, in) {
128128
t.Errorf("decoding mismatch for sparse data: have %x, want %x, error %v", data, in, err)
129129
}
130-
// Check the the compression returns the input if the bitset encoding is longer
130+
// Check the compression returns the input if the bitset encoding is longer
131131
in = hexutil.MustDecode("0xdf7070533534333636313639343638373532313536346c1bc33339343837313070706336343035336336346c65fefb3930393233383838ac2f65fefb")
132132
out = hexutil.MustDecode("0xdf7070533534333636313639343638373532313536346c1bc33339343837313070706336343035336336346c65fefb3930393233383838ac2f65fefb")
133133

console/prompter.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ type UserPrompter interface {
4343
// choice to be made, returning that choice.
4444
PromptConfirm(prompt string) (bool, error)
4545

46-
// SetHistory sets the the input scrollback history that the prompter will allow
46+
// SetHistory sets the input scrollback history that the prompter will allow
4747
// the user to scroll back to.
4848
SetHistory(history []string)
4949

@@ -149,7 +149,7 @@ func (p *terminalPrompter) PromptConfirm(prompt string) (bool, error) {
149149
return false, err
150150
}
151151

152-
// SetHistory sets the the input scrollback history that the prompter will allow
152+
// SetHistory sets the input scrollback history that the prompter will allow
153153
// the user to scroll back to.
154154
func (p *terminalPrompter) SetHistory(history []string) {
155155
p.State.ReadHistory(strings.NewReader(strings.Join(history, "\n")))

core/block_validator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func NewBlockValidator(config *params.ChainConfig, blockchain *BlockChain, engin
4545
return validator
4646
}
4747

48-
// ValidateBody validates the given block's uncles and verifies the the block
48+
// ValidateBody validates the given block's uncles and verifies the block
4949
// header's transaction and uncle roots. The headers are assumed to be already
5050
// validated at this point.
5151
func (v *BlockValidator) ValidateBody(block *types.Block) error {

core/state_processor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func (p *StateProcessor) Process(block *types.Block, statedb *state.StateDB, cfg
6161
allLogs []*types.Log
6262
gp = new(GasPool).AddGas(block.GasLimit())
6363
)
64-
// Mutate the the block and state according to any hard-fork specs
64+
// Mutate the block and state according to any hard-fork specs
6565
if p.config.DAOForkSupport && p.config.DAOForkBlock != nil && p.config.DAOForkBlock.Cmp(block.Number()) == 0 {
6666
misc.ApplyDAOHardFork(statedb)
6767
}

core/vm/contract.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ type AccountRef common.Address
4040
func (ar AccountRef) Address() common.Address { return (common.Address)(ar) }
4141

4242
// Contract represents an ethereum contract in the state database. It contains
43-
// the the contract code, calling arguments. Contract implements ContractRef
43+
// the contract code, calling arguments. Contract implements ContractRef
4444
type Contract struct {
4545
// CallerAddress is the result of the caller which initialised this
4646
// contract. However when the "call method" is delegated this value

crypto/secp256k1/secp256.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func Sign(msg []byte, seckey []byte) ([]byte, error) {
8686
return sig, nil
8787
}
8888

89-
// RecoverPubkey returns the the public key of the signer.
89+
// RecoverPubkey returns the public key of the signer.
9090
// msg must be the 32-byte hash of the message to be signed.
9191
// sig must be a 65-byte compact ECDSA signature containing the
9292
// recovery id as the last element.

eth/downloader/queue.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ func (q *queue) expire(timeout time.Duration, pendPool map[string]*fetchRequest,
662662
for _, header := range request.Headers {
663663
taskQueue.Push(header, -float32(header.Number.Uint64()))
664664
}
665-
// Add the peer to the expiry report along the the number of failed requests
665+
// Add the peer to the expiry report along the number of failed requests
666666
expiries[id] = len(request.Headers)
667667
}
668668
}

eth/fetcher/fetcher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ func (f *Fetcher) Notify(peer string, hash common.Hash, number uint64, time time
204204
}
205205
}
206206

207-
// Enqueue tries to fill gaps the the fetcher's future import queue.
207+
// Enqueue tries to fill gaps the fetcher's future import queue.
208208
func (f *Fetcher) Enqueue(peer string, block *types.Block) error {
209209
op := &inject{
210210
origin: peer,

0 commit comments

Comments
 (0)