Skip to content

Commit 2a795c1

Browse files
authored
all: fix problematic function name in comment (#32513)
Fix problematic function name in comment. Do my best to correct them all with a script to avoid spamming PRs.
1 parent 0979c6a commit 2a795c1

File tree

11 files changed

+12
-12
lines changed

11 files changed

+12
-12
lines changed

beacon/light/request/scheduler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ func (s *Scheduler) addEvent(event Event) {
269269
s.Trigger()
270270
}
271271

272-
// filterEvent sorts each Event either as a request event or a server event,
272+
// filterEvents sorts each Event either as a request event or a server event,
273273
// depending on its type. Request events are also sorted in a map based on the
274274
// module that originally initiated the request. It also ensures that no events
275275
// related to a server are returned before EvRegistered or after EvUnregistered.

core/filtermaps/indexer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const (
3030
headLogDelay = time.Second // head indexing log info delay (do not log if finished faster)
3131
)
3232

33-
// updateLoop initializes and updates the log index structure according to the
33+
// indexerLoop initializes and updates the log index structure according to the
3434
// current targetView.
3535
func (f *FilterMaps) indexerLoop() {
3636
defer f.closeWg.Done()
@@ -221,7 +221,7 @@ func (f *FilterMaps) processSingleEvent(blocking bool) bool {
221221
return true
222222
}
223223

224-
// setTargetView updates the target chain view of the iterator.
224+
// setTarget updates the target chain view of the iterator.
225225
func (f *FilterMaps) setTarget(target targetUpdate) {
226226
f.targetView = target.targetView
227227
f.historyCutoff = target.historyCutoff

core/state/reader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ type trieReader struct {
232232
lock sync.Mutex // Lock for protecting concurrent read
233233
}
234234

235-
// trieReader constructs a trie reader of the specific state. An error will be
235+
// newTrieReader constructs a trie reader of the specific state. An error will be
236236
// returned if the associated trie specified by root is not existent.
237237
func newTrieReader(root common.Hash, db *triedb.Database, cache *utils.PointCache) (*trieReader, error) {
238238
var (

core/verkle_witness_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ func TestProcessVerkleSelfDestructInSeparateTx(t *testing.T) {
787787
}
788788
}
789789

790-
// TestProcessVerkleSelfDestructInSeparateTx controls the contents of the witness after
790+
// TestProcessVerkleSelfDestructInSameTx controls the contents of the witness after
791791
// a eip6780-compliant selfdestruct occurs.
792792
func TestProcessVerkleSelfDestructInSameTx(t *testing.T) {
793793
// The test txs were taken from a secondary testnet with chain id 69421

core/vm/program/program.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func (p *Program) add(op byte) *Program {
5353
return p
5454
}
5555

56-
// pushBig creates a PUSHX instruction and pushes the given val.
56+
// doPush creates a PUSHX instruction and pushes the given val.
5757
// - If the val is nil, it pushes zero
5858
// - If the val is bigger than 32 bytes, it panics
5959
func (p *Program) doPush(val *uint256.Int) {

crypto/kzg4844/kzg4844_ckzg_cgo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func ckzgComputeCellProofs(blob *Blob) ([]Proof, error) {
150150
return p, nil
151151
}
152152

153-
// ckzgVerifyCellProofs verifies that the blob data corresponds to the provided commitment.
153+
// ckzgVerifyCellProofBatch verifies that the blob data corresponds to the provided commitment.
154154
func ckzgVerifyCellProofBatch(blobs []Blob, commitments []Commitment, cellProofs []Proof) error {
155155
ckzgIniter.Do(ckzgInit)
156156
var (

crypto/kzg4844/kzg4844_gokzg.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func gokzgComputeCellProofs(blob *Blob) ([]Proof, error) {
115115
return p, nil
116116
}
117117

118-
// gokzgVerifyCellProofs verifies that the blob data corresponds to the provided commitment.
118+
// gokzgVerifyCellProofBatch verifies that the blob data corresponds to the provided commitment.
119119
func gokzgVerifyCellProofBatch(blobs []Blob, commitments []Commitment, cellProofs []Proof) error {
120120
gokzgIniter.Do(gokzgInit)
121121

eth/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ func newBlockRangeState(chain *core.BlockChain, typeMux *event.TypeMux) *blockRa
579579
return st
580580
}
581581

582-
// blockRangeBroadcastLoop announces changes in locally-available block range to peers.
582+
// blockRangeLoop announces changes in locally-available block range to peers.
583583
// The range to announce is the range that is available in the store, so it's not just
584584
// about imported blocks.
585585
func (h *handler) blockRangeLoop(st *blockRangeState) {

p2p/enode/iter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ type SourceIterator interface {
3838
NodeSource() string // source of current node
3939
}
4040

41-
// WithSource attaches a 'source name' to an iterator.
41+
// WithSourceName attaches a 'source name' to an iterator.
4242
func WithSourceName(name string, it Iterator) SourceIterator {
4343
return sourceIter{it, name}
4444
}

triedb/pathdb/iterator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ type diskStorageIterator struct {
309309
it ethdb.Iterator
310310
}
311311

312-
// StorageIterator creates a storage iterator over the persistent state.
312+
// newDiskStorageIterator creates a storage iterator over the persistent state.
313313
func newDiskStorageIterator(db ethdb.KeyValueStore, account common.Hash, seek common.Hash) StorageIterator {
314314
pos := common.TrimRightZeroes(seek[:])
315315
return &diskStorageIterator{

0 commit comments

Comments
 (0)