Skip to content

Commit da9d464

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

File tree

26 files changed

+29
-29
lines changed

26 files changed

+29
-29
lines changed

accounts/abi/bind/template.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ var (
114114
115115
{{$structs := .Structs}}
116116
{{range $structs}}
117-
// {{.Name}} is an auto generated low-level Go binding around an user-defined struct.
117+
// {{.Name}} is an auto generated low-level Go binding around a user-defined struct.
118118
type {{.Name}} struct {
119119
{{range $field := .Fields}}
120120
{{$field.Name}} {{$field.Type}}{{end}}

accounts/usbwallet/wallet.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ func (w *wallet) selfDerive() {
442442

443443
// Contains implements accounts.Wallet, returning whether a particular account is
444444
// or is not pinned into this wallet instance. Although we could attempt to resolve
445-
// unpinned accounts, that would be an non-negligible hardware operation.
445+
// unpinned accounts, that would be a non-negligible hardware operation.
446446
func (w *wallet) Contains(account accounts.Account) bool {
447447
w.stateLock.RLock()
448448
defer w.stateLock.RUnlock()

beacon/types/header.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ type headerMarshaling struct {
6565

6666
// Hash calculates the block root of the header.
6767
//
68-
// TODO(zsfelfoldi): Remove this when an SSZ encoder lands.
68+
// TODO(zsfelfoldi): Remove this when a SSZ encoder lands.
6969
func (h *Header) Hash() common.Hash {
7070
var values [16]merkle.Value // values corresponding to indices 8 to 15 of the beacon header tree
7171
binary.LittleEndian.PutUint64(values[headerIndexSlot][:8], h.Slot)

cmd/clef/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ var (
129129
stdiouiFlag = &cli.BoolFlag{
130130
Name: "stdio-ui",
131131
Usage: "Use STDIN/STDOUT as a channel for an external UI. " +
132-
"This means that an STDIN/STDOUT is used for RPC-communication with a e.g. a graphical user " +
132+
"This means that a STDIN/STDOUT is used for RPC-communication with a e.g. a graphical user " +
133133
"interface, and can be used when Clef is started by an external process.",
134134
}
135135
testFlag = &cli.BoolFlag{

cmd/evm/internal/t8ntool/tracewriter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
"github.com/ava-labs/libevm/log"
2828
)
2929

30-
// traceWriter is an vm.EVMLogger which also holds an inner logger/tracer.
30+
// traceWriter is a vm.EVMLogger which also holds an inner logger/tracer.
3131
// When the TxEnd event happens, the inner tracer result is written to the file, and
3232
// the file is closed.
3333
type traceWriter struct {

common/lru/lru.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type Cache[K comparable, V any] struct {
2525
mu sync.Mutex
2626
}
2727

28-
// NewCache creates an LRU cache.
28+
// NewCache creates a LRU cache.
2929
func NewCache[K comparable, V any](capacity int) *Cache[K, V] {
3030
return &Cache[K, V]{cache: NewBasicLRU[K, V](capacity)}
3131
}

consensus/clique/clique.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ var (
114114
// errInvalidMixDigest is returned if a block's mix digest is non-zero.
115115
errInvalidMixDigest = errors.New("non-zero mix digest")
116116

117-
// errInvalidUncleHash is returned if a block contains an non-empty uncle list.
117+
// errInvalidUncleHash is returned if a block contains a non-empty uncle list.
118118
errInvalidUncleHash = errors.New("non empty uncle hash")
119119

120120
// errInvalidDifficulty is returned if the difficulty of a block neither 1 or 2.

core/rawdb/accessors_snapshot.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,20 +92,20 @@ func DeleteAccountSnapshot(db ethdb.KeyValueWriter, hash common.Hash) {
9292
}
9393
}
9494

95-
// ReadStorageSnapshot retrieves the snapshot entry of an storage trie leaf.
95+
// ReadStorageSnapshot retrieves the snapshot entry of a storage trie leaf.
9696
func ReadStorageSnapshot(db ethdb.KeyValueReader, accountHash, storageHash common.Hash) []byte {
9797
data, _ := db.Get(storageSnapshotKey(accountHash, storageHash))
9898
return data
9999
}
100100

101-
// WriteStorageSnapshot stores the snapshot entry of an storage trie leaf.
101+
// WriteStorageSnapshot stores the snapshot entry of a storage trie leaf.
102102
func WriteStorageSnapshot(db ethdb.KeyValueWriter, accountHash, storageHash common.Hash, entry []byte) {
103103
if err := db.Put(storageSnapshotKey(accountHash, storageHash), entry); err != nil {
104104
log.Crit("Failed to store storage snapshot", "err", err)
105105
}
106106
}
107107

108-
// DeleteStorageSnapshot removes the snapshot entry of an storage trie leaf.
108+
// DeleteStorageSnapshot removes the snapshot entry of a storage trie leaf.
109109
func DeleteStorageSnapshot(db ethdb.KeyValueWriter, accountHash, storageHash common.Hash) {
110110
if err := db.Delete(storageSnapshotKey(accountHash, storageHash)); err != nil {
111111
log.Crit("Failed to delete storage snapshot", "err", err)

core/rawdb/freezer_table.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ func (t *freezerTable) repair() error {
239239
firstIndex.unmarshalBinary(buffer)
240240

241241
// Assign the tail fields with the first stored index.
242-
// The total removed items is represented with an uint32,
242+
// The total removed items is represented with a uint32,
243243
// which is not enough in theory but enough in practice.
244244
// TODO: use uint64 to represent total removed items.
245245
t.tailId = firstIndex.filenum

core/state/iterator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ type nodeIterator struct {
4646
Error error // Failure set in case of an internal error in the iterator
4747
}
4848

49-
// newNodeIterator creates an post-order state node iterator.
49+
// newNodeIterator creates a post-order state node iterator.
5050
func newNodeIterator(state *StateDB) *nodeIterator {
5151
return &nodeIterator{
5252
state: state,

0 commit comments

Comments
 (0)