Skip to content

Commit 69b2c49

Browse files
holimanshekhirin
authored andcommitted
all: fix spelling mistakes (ethereum#25961)
1 parent b9d56a4 commit 69b2c49

File tree

49 files changed

+64
-64
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+64
-64
lines changed

accounts/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ func merge(slice []Wallet, wallets ...Wallet) []Wallet {
257257
return slice
258258
}
259259

260-
// drop is the couterpart of merge, which looks up wallets from within the sorted
260+
// drop is the counterpart of merge, which looks up wallets from within the sorted
261261
// cache and removes the ones specified.
262262
func drop(slice []Wallet, wallets ...Wallet) []Wallet {
263263
for _, wallet := range wallets {

cmd/devp2p/internal/ethtest/snap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func (s *Suite) TestSnapGetAccountRange(t *utesting.T) {
9090
{4000, s.chain.RootAt(0), zero, ffHash, 0, zero, zero},
9191
// A 127 block old stateroot, expected to be served
9292
{4000, s.chain.RootAt(999 - 127), zero, ffHash, 77, firstKey, common.HexToHash("0xe4c6fdef5dd4e789a2612390806ee840b8ec0fe52548f8b4efe41abb20c37aac")},
93-
// A root which is not actually an account root, but a storage orot
93+
// A root which is not actually an account root, but a storage root
9494
{4000, storageRoot, zero, ffHash, 0, zero, zero},
9595

9696
// And some non-sensical requests

cmd/evm/internal/t8ntool/transition.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ func (g Alloc) OnAccount(addr common.Address, dumpAccount state.DumpAccount) {
394394
g[addr] = genesisAccount
395395
}
396396

397-
// saveFile marshalls the object to the given file
397+
// saveFile marshals the object to the given file
398398
func saveFile(baseDir, filename string, data interface{}) error {
399399
b, err := json.MarshalIndent(data, "", " ")
400400
if err != nil {

consensus/clique/snapshot_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func (ap *testerAccountPool) sign(header *types.Header, signer string) {
8686
copy(header.Extra[len(header.Extra)-extraSeal:], sig)
8787
}
8888

89-
// testerVote represents a single block signed by a parcitular account, where
89+
// testerVote represents a single block signed by a particular account, where
9090
// the account may or may not have cast a Clique vote.
9191
type testerVote struct {
9292
signer string

core/bloombits/matcher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ func (s *MatcherSession) Multiplex(batch int, wait time.Duration, mux chan chan
612612
return
613613

614614
case <-time.After(wait):
615-
// Throttling up, fetch whatever's available
615+
// Throttling up, fetch whatever is available
616616
}
617617
}
618618
// Allocate as much as we can handle and request servicing

core/state/dump.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929
"github.com/ethereum/go-ethereum/trie"
3030
)
3131

32-
// DumpConfig is a set of options to control what portions of the statewill be
32+
// DumpConfig is a set of options to control what portions of the state will be
3333
// iterated and collected.
3434
type DumpConfig struct {
3535
SkipCode bool

core/state/snapshot/conversion.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ func (stat *generateStats) progressAccounts(account common.Hash, done uint64) {
136136
stat.head = account
137137
}
138138

139-
// finishAccounts updates the gemerator stats for the finished account range.
139+
// finishAccounts updates the generator stats for the finished account range.
140140
func (stat *generateStats) finishAccounts(done uint64) {
141141
stat.lock.Lock()
142142
defer stat.lock.Unlock()

core/state/snapshot/iterator_fast.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ func (fi *fastIterator) next(idx int) bool {
276276
return false
277277
}
278278
// The elem we're placing it next to has the same value,
279-
// so whichever winds up on n+1 will need further iteraton
279+
// so whichever winds up on n+1 will need further iteration
280280
clash = n + 1
281281

282282
return cur.priority < fi.iterators[n+1].priority

core/state/snapshot/iterator_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ func TestStorageIteratorDeletions(t *testing.T) {
819819
// only spit out 200 values eventually.
820820
//
821821
// The value-fetching benchmark is easy on the binary iterator, since it never has to reach
822-
// down at any depth for retrieving the values -- all are on the toppmost layer
822+
// down at any depth for retrieving the values -- all are on the topmost layer
823823
//
824824
// BenchmarkAccountIteratorTraversal/binary_iterator_keys-6 2239 483674 ns/op
825825
// BenchmarkAccountIteratorTraversal/binary_iterator_values-6 2403 501810 ns/op

core/state/snapshot/metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ var (
3636
snapAccountProveCounter = metrics.NewRegisteredCounter("state/snapshot/generation/duration/account/prove", nil)
3737
// snapAccountTrieReadCounter measures time spent on the account trie iteration
3838
snapAccountTrieReadCounter = metrics.NewRegisteredCounter("state/snapshot/generation/duration/account/trieread", nil)
39-
// snapAccountSnapReadCounter measues time spent on the snapshot account iteration
39+
// snapAccountSnapReadCounter measures time spent on the snapshot account iteration
4040
snapAccountSnapReadCounter = metrics.NewRegisteredCounter("state/snapshot/generation/duration/account/snapread", nil)
4141
// snapAccountWriteCounter measures time spent on writing/updating/deleting accounts
4242
snapAccountWriteCounter = metrics.NewRegisteredCounter("state/snapshot/generation/duration/account/write", nil)

0 commit comments

Comments
 (0)