Skip to content

Commit 44ea72e

Browse files
authored
chore: remove duplicate word in comment (gcash#563)
Signed-off-by: riyueguang <rustruby@outlook.com>
1 parent c1f71bd commit 44ea72e

18 files changed

Lines changed: 21 additions & 21 deletions

File tree

addrmgr/network.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var (
2020
ipNet("192.168.0.0", 16, 32),
2121
}
2222

23-
// rfc2544Net specifies the the IPv4 block as defined by RFC2544
23+
// rfc2544Net specifies the IPv4 block as defined by RFC2544
2424
// (198.18.0.0/15)
2525
rfc2544Net = ipNet("198.18.0.0", 15, 32)
2626

bchec/field.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ package bchec
2828
// arithmetic between each array element which would lead to expensive carry
2929
// propagation.
3030
//
31-
// Given the above, this implementation represents the the field elements as
31+
// Given the above, this implementation represents the field elements as
3232
// 10 uint32s with each word (array entry) treated as base 2^26. This was
3333
// chosen for the following reasons:
3434
// 1) Most systems at the current time are 64-bit (or at least have 64-bit
3535
// registers available for specialized purposes such as MMX) so the
3636
// intermediate results can typically be done using a native register (and
3737
// using uint64s to avoid the need for additional half-word arithmetic)
3838
// 2) In order to allow addition of the internal words without having to
39-
// propagate the the carry, the max normalized value for each register must
39+
// propagate the carry, the max normalized value for each register must
4040
// be less than the number of bits available in the register
4141
// 3) Since we're dealing with 32-bit values, 64-bits of overflow is a
4242
// reasonable choice for #2

bchec/privkey.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
)
1313

1414
// PrivateKey wraps an ecdsa.PrivateKey as a convenience mainly for signing
15-
// things with the the private key without having to directly import the ecdsa
15+
// things with the private key without having to directly import the ecdsa
1616
// package.
1717
type PrivateKey ecdsa.PrivateKey
1818

bchec/pubkey.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const (
6565
pubkeyHybrid byte = 0x6 // y_bit + x coord + y coord
6666
)
6767

68-
// IsCompressedPubKey returns true the the passed serialized public key has
68+
// IsCompressedPubKey returns true the passed serialized public key has
6969
// been encoded in compressed format, and false otherwise.
7070
func IsCompressedPubKey(pubKey []byte) bool {
7171
// The public key is only compressed if it is the correct length and

blockchain/chainio.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,10 @@ type SpentTxOut struct {
264264
// Amount is the amount of the output.
265265
Amount int64
266266

267-
// PkScipt is the the public key script for the output.
267+
// PkScipt is the public key script for the output.
268268
PkScript []byte
269269

270-
// Height is the height of the the block containing the creating tx.
270+
// Height is the height of the block containing the creating tx.
271271
Height int32
272272

273273
// Denotes if the creating tx is a coinbase.

blockchain/fullblocktests/generate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ func replaceCoinbaseSigScript(script []byte) func(*wire.MsgBlock) {
446446
}
447447

448448
// additionalTx returns a function that itself takes a block and modifies it by
449-
// adding the the provided transaction.
449+
// adding the provided transaction.
450450
func additionalTx(tx *wire.MsgTx) func(*wire.MsgBlock) {
451451
return func(b *wire.MsgBlock) {
452452
b.AddTransaction(tx)

btcjson/cmdparse.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ func assignField(paramNum int, fieldName string, dest reflect.Value, src reflect
538538
// by this package are already registered by default.
539539
//
540540
// The arguments are most efficient when they are the exact same type as the
541-
// underlying field in the command struct associated with the the method,
541+
// underlying field in the command struct associated with the method,
542542
// however this function also will perform a variety of conversions to make it
543543
// more flexible. This allows, for example, command line args which are strings
544544
// to be passed unaltered. In particular, the following conversions are

btcjson/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Package btcjson provides primitives for working with the bitcoin JSON-RPC API.
88
# Overview
99
1010
When communicating via the JSON-RPC protocol, all of the commands need to be
11-
marshalled to and from the the wire in the appropriate format. This package
11+
marshalled to and from the wire in the appropriate format. This package
1212
provides data structures and primitives to ease this process.
1313
1414
In addition, it also provides some additional features such as custom command

database/driver.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func SupportedDrivers() []string {
6262
// arguments are specific to the database type driver. See the documentation
6363
// for the database driver for further details.
6464
//
65-
// ErrDbUnknownType will be returned if the the database type is not registered.
65+
// ErrDbUnknownType will be returned if the database type is not registered.
6666
func Create(dbType string, args ...interface{}) (DB, error) {
6767
drv, exists := drivers[dbType]
6868
if !exists {
@@ -77,7 +77,7 @@ func Create(dbType string, args ...interface{}) (DB, error) {
7777
// specific to the database type driver. See the documentation for the database
7878
// driver for further details.
7979
//
80-
// ErrDbUnknownType will be returned if the the database type is not registered.
80+
// ErrDbUnknownType will be returned if the database type is not registered.
8181
func Open(dbType string, args ...interface{}) (DB, error) {
8282
drv, exists := drivers[dbType]
8383
if !exists {

database/ffldb/blockio.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ type blockStore struct {
137137
// openBlocksLRU tracks how the open files are refenced by pushing the
138138
// most recently used files to the front of the list thereby trickling
139139
// the least recently used files to end of the list. When a file needs
140-
// to be closed due to exceeding the the max number of allowed open
140+
// to be closed due to exceeding the max number of allowed open
141141
// files, the one at the end of the list is closed.
142142
//
143143
// fileNumToLRUElem is a mapping between a specific block file number

0 commit comments

Comments
 (0)