Skip to content

Commit db8a950

Browse files
committed
all: fix bad usage of a and replace with an
1 parent da9d464 commit db8a950

File tree

12 files changed

+14
-14
lines changed

12 files changed

+14
-14
lines changed

accounts/abi/abi_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ func TestABI_EventById(t *testing.T) {
10591059
t.Fatalf("Failed to look up ABI method: %v, test #%d", err, testnum)
10601060
}
10611061
if event == nil {
1062-
t.Errorf("We should find a event for topic %s, test #%d", topicID.Hex(), testnum)
1062+
t.Errorf("We should find an event for topic %s, test #%d", topicID.Hex(), testnum)
10631063
} else if event.ID != topicID {
10641064
t.Errorf("Event id %s does not match topic %s, test #%d", event.ID.Hex(), topicID.Hex(), testnum)
10651065
}

accounts/keystore/keystore.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ func (ks *KeyStore) Delete(a accounts.Account, passphrase string) error {
258258
return err
259259
}
260260

261-
// SignHash calculates a ECDSA signature for the given hash. The produced
261+
// SignHash calculates an ECDSA signature for the given hash. The produced
262262
// signature is in the [R || S || V] format where V is 0 or 1.
263263
func (ks *KeyStore) SignHash(a accounts.Account, hash []byte) ([]byte, error) {
264264
// Look up the key to sign with and abort if it cannot be found

cmd/utils/flags.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ var (
544544
// Logging and debug settings
545545
EthStatsURLFlag = &cli.StringFlag{
546546
Name: "ethstats",
547-
Usage: "Reporting URL of a ethstats service (nodename:secret@host:port)",
547+
Usage: "Reporting URL of an ethstats service (nodename:secret@host:port)",
548548
Category: flags.MetricsCategory,
549549
}
550550
NoCompactionFlag = &cli.BoolFlag{

consensus/clique/api.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ func (sb *blockNumberOrHashOrRLP) UnmarshalJSON(data []byte) error {
205205
}
206206

207207
// GetSigner returns the signer for a specific clique block.
208-
// Can be called with a block number, a block hash or a rlp encoded blob.
208+
// Can be called with a block number, a block hash or an rlp encoded blob.
209209
// The RLP encoded blob can either be a block or a header.
210210
func (api *API) GetSigner(rlpOrBlockNr *blockNumberOrHashOrRLP) (common.Address, error) {
211211
if len(rlpOrBlockNr.RLP) == 0 {

consensus/ethash/ethash.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func NewFaker() *Ethash {
4040
return new(Ethash)
4141
}
4242

43-
// NewFakeFailer creates a ethash consensus engine with a fake PoW scheme that
43+
// NewFakeFailer creates an ethash consensus engine with a fake PoW scheme that
4444
// accepts all blocks as valid apart from the single one specified, though they
4545
// still have to conform to the Ethereum consensus rules.
4646
func NewFakeFailer(fail uint64) *Ethash {
@@ -49,7 +49,7 @@ func NewFakeFailer(fail uint64) *Ethash {
4949
}
5050
}
5151

52-
// NewFakeDelayer creates a ethash consensus engine with a fake PoW scheme that
52+
// NewFakeDelayer creates an ethash consensus engine with a fake PoW scheme that
5353
// accepts all blocks as valid, but delays verifications by some time, though
5454
// they still have to conform to the Ethereum consensus rules.
5555
func NewFakeDelayer(delay time.Duration) *Ethash {

core/rlp_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ func testRlpIterator(t *testing.T, txs, uncles, datasize int) {
133133
}
134134
}
135135

136-
// BenchmarkHashing compares the speeds of hashing a rlp raw data directly
136+
// BenchmarkHashing compares the speeds of hashing an rlp raw data directly
137137
// without the unmarshalling/marshalling step
138138
func BenchmarkHashing(b *testing.B) {
139139
// Make a pretty fat block

core/state/database.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020
"errors"
2121
"fmt"
2222

23-
"github.com/crate-crypto/go-ipa/banderwagon"
2423
"github.com/ava-labs/libevm/common"
2524
"github.com/ava-labs/libevm/common/lru"
2625
"github.com/ava-labs/libevm/core/rawdb"
@@ -31,6 +30,7 @@ import (
3130
"github.com/ava-labs/libevm/trie/trienode"
3231
"github.com/ava-labs/libevm/trie/utils"
3332
"github.com/ava-labs/libevm/triedb"
33+
"github.com/crate-crypto/go-ipa/banderwagon"
3434
)
3535

3636
const (
@@ -71,7 +71,7 @@ type Database interface {
7171
TrieDB() *triedb.Database
7272
}
7373

74-
// Trie is a Ethereum Merkle Patricia trie.
74+
// Trie is an Ethereum Merkle Patricia trie.
7575
type Trie interface {
7676
// GetKey returns the sha3 preimage of a hashed key that was previously used
7777
// to store a value.

core/state/snapshot/snapshot.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ func (t *Tree) generating() (bool, error) {
863863
return layer.genMarker != nil, nil
864864
}
865865

866-
// DiskRoot is a external helper function to return the disk layer root.
866+
// DiskRoot is an external helper function to return the disk layer root.
867867
func (t *Tree) DiskRoot() common.Hash {
868868
t.lock.Lock()
869869
defer t.lock.Unlock()

internal/ethapi/api.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1857,7 +1857,7 @@ func (s *TransactionAPI) Sign(addr common.Address, data hexutil.Bytes) (hexutil.
18571857
return signature, err
18581858
}
18591859

1860-
// SignTransactionResult represents a RLP encoded signed transaction.
1860+
// SignTransactionResult represents an RLP encoded signed transaction.
18611861
type SignTransactionResult struct {
18621862
Raw hexutil.Bytes `json:"raw"`
18631863
Tx *types.Transaction `json:"tx"`

metrics/opentsdb.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func OpenTSDB(r Registry, d time.Duration, prefix string, addr *net.TCPAddr) {
3737
}
3838

3939
// OpenTSDBWithConfig is a blocking exporter function just like OpenTSDB,
40-
// but it takes a OpenTSDBConfig instead.
40+
// but it takes an OpenTSDBConfig instead.
4141
func OpenTSDBWithConfig(c OpenTSDBConfig) {
4242
for range time.Tick(c.FlushInterval) {
4343
if err := openTSDB(&c); nil != err {

p2p/util_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func TestExpHeap(t *testing.T) {
4848
t.Fatal("wrong nextExpiry")
4949
}
5050
if h.contains("a") {
51-
t.Fatal("heap contains a even though it has already expired")
51+
t.Fatal("heap contains an even though it has already expired")
5252
}
5353
if !h.contains("b") || !h.contains("c") {
5454
t.Fatal("heap doesn't contain all live items")

signer/core/gnosis_safe.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ type GnosisSafeTx struct {
5050
ChainId *math.HexOrDecimal256 `json:"chainId,omitempty"`
5151
}
5252

53-
// ToTypedData converts the tx to a EIP-712 Typed Data structure for signing
53+
// ToTypedData converts the tx to an EIP-712 Typed Data structure for signing
5454
func (tx *GnosisSafeTx) ToTypedData() apitypes.TypedData {
5555
var data hexutil.Bytes
5656
if tx.Data != nil {

0 commit comments

Comments
 (0)