Skip to content

Commit 4e1e373

Browse files
authored
core/txpool/legacypool: fix typo (#28258)
1 parent 052355f commit 4e1e373

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/txpool/legacypool/list.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ func (m *sortedMap) Remove(nonce uint64) bool {
205205
// removed from the list.
206206
//
207207
// Note, all transactions with nonces lower than start will also be returned to
208-
// prevent getting into and invalid state. This is not something that should ever
208+
// prevent getting into an invalid state. This is not something that should ever
209209
// happen but better to be self correcting than failing!
210210
func (m *sortedMap) Ready(start uint64) types.Transactions {
211211
// Short circuit if no transactions are available
@@ -421,7 +421,7 @@ func (l *list) Remove(tx *types.Transaction) (bool, types.Transactions) {
421421
// removed from the list.
422422
//
423423
// Note, all transactions with nonces lower than start will also be returned to
424-
// prevent getting into and invalid state. This is not something that should ever
424+
// prevent getting into an invalid state. This is not something that should ever
425425
// happen but better to be self correcting than failing!
426426
func (l *list) Ready(start uint64) types.Transactions {
427427
txs := l.txs.Ready(start)

0 commit comments

Comments
 (0)