Skip to content

Commit 7e06fbc

Browse files
buddh0jorgemmsilva
authored andcommitted
core,eth,internal: fix typo (ethereum#29024)
1 parent fc51736 commit 7e06fbc

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

core/state/sync.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"github.com/ethereum/go-ethereum/trie"
2525
)
2626

27-
// NewStateSync create a new state trie download scheduler.
27+
// NewStateSync creates a new state trie download scheduler.
2828
func NewStateSync(root common.Hash, database ethdb.KeyValueReader, onLeaf func(keys [][]byte, leaf []byte) error, scheme string) *trie.Sync {
2929
// Register the storage slot callback if the external callback is specified.
3030
var onSlot func(keys [][]byte, path []byte, leaf []byte, parent common.Hash, parentPath []byte) error

core/txpool/legacypool/list.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ type list struct {
278278
totalcost *uint256.Int // Total cost of all transactions in the list
279279
}
280280

281-
// newList create a new transaction list for maintaining nonce-indexable fast,
281+
// newList creates a new transaction list for maintaining nonce-indexable fast,
282282
// gapped, sortable transaction lists.
283283
func newList(strict bool) *list {
284284
return &list{

eth/api_miner.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type MinerAPI struct {
2929
e *Ethereum
3030
}
3131

32-
// NewMinerAPI create a new MinerAPI instance.
32+
// NewMinerAPI creates a new MinerAPI instance.
3333
func NewMinerAPI(e *Ethereum) *MinerAPI {
3434
return &MinerAPI{e}
3535
}

eth/downloader/api.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ type DownloaderAPI struct {
3838
uninstallSyncSubscription chan *uninstallSyncSubscriptionRequest
3939
}
4040

41-
// NewDownloaderAPI create a new DownloaderAPI. The API has an internal event loop that
41+
// NewDownloaderAPI creates a new DownloaderAPI. The API has an internal event loop that
4242
// listens for events from the downloader through the global event mux. In case it receives one of
4343
// these events it broadcasts it to all syncing subscriptions that are installed through the
4444
// installSyncSubscription channel.

eth/protocols/eth/peer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ type Peer struct {
9292
lock sync.RWMutex // Mutex protecting the internal fields
9393
}
9494

95-
// NewPeer create a wrapper for a network connection and negotiated protocol
95+
// NewPeer creates a wrapper for a network connection and negotiated protocol
9696
// version.
9797
func NewPeer(version uint, p *p2p.Peer, rw p2p.MsgReadWriter, txpool TxPool) *Peer {
9898
peer := &Peer{

eth/protocols/snap/peer.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ type Peer struct {
3333
logger log.Logger // Contextual logger with the peer id injected
3434
}
3535

36-
// NewPeer create a wrapper for a network connection and negotiated protocol
36+
// NewPeer creates a wrapper for a network connection and negotiated protocol
3737
// version.
3838
func NewPeer(version uint, p *p2p.Peer, rw p2p.MsgReadWriter) *Peer {
3939
id := p.ID().String()
@@ -46,7 +46,7 @@ func NewPeer(version uint, p *p2p.Peer, rw p2p.MsgReadWriter) *Peer {
4646
}
4747
}
4848

49-
// NewFakePeer create a fake snap peer without a backing p2p peer, for testing purposes.
49+
// NewFakePeer creates a fake snap peer without a backing p2p peer, for testing purposes.
5050
func NewFakePeer(version uint, id string, rw p2p.MsgReadWriter) *Peer {
5151
return &Peer{
5252
id: id,

internal/ethapi/api.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ type PersonalAccountAPI struct {
288288
b Backend
289289
}
290290

291-
// NewPersonalAccountAPI create a new PersonalAccountAPI.
291+
// NewPersonalAccountAPI creates a new PersonalAccountAPI.
292292
func NewPersonalAccountAPI(b Backend, nonceLock *AddrLocker) *PersonalAccountAPI {
293293
return &PersonalAccountAPI{
294294
am: b.AccountManager(),

0 commit comments

Comments
 (0)