Skip to content

Commit 829c683

Browse files
wuxiangzhou2010sunfinite
authored andcommitted
all: fix various typos (ethereum#16533)
* fix typo * fix typo * fix typo
1 parent 71429df commit 829c683

File tree

14 files changed

+23
-23
lines changed

14 files changed

+23
-23
lines changed

cmd/geth/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ func startNode(ctx *cli.Context, stack *node.Node) {
241241
stack.AccountManager().Subscribe(events)
242242

243243
go func() {
244-
// Create an chain state reader for self-derivation
244+
// Create a chain state reader for self-derivation
245245
rpcClient, err := stack.Attach()
246246
if err != nil {
247247
utils.Fatalf("Failed to attach to self: %v", err)

cmd/puppeth/module_dashboard.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ func deployDashboard(client *sshClient, network string, conf *config, config *da
683683
return nil, client.Stream(fmt.Sprintf("cd %s && docker-compose -p %s up -d --build --force-recreate", workdir, network))
684684
}
685685

686-
// dashboardInfos is returned from an dashboard status check to allow reporting
686+
// dashboardInfos is returned from a dashboard status check to allow reporting
687687
// various configuration parameters.
688688
type dashboardInfos struct {
689689
host string

cmd/puppeth/module_explorer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ func (info *explorerInfos) Report() map[string]string {
168168
return report
169169
}
170170

171-
// checkExplorer does a health-check against an block explorer server to verify
171+
// checkExplorer does a health-check against a block explorer server to verify
172172
// whether it's running, and if yes, whether it's responsive.
173173
func checkExplorer(client *sshClient, network string) (*explorerInfos, error) {
174174
// Inspect a possible block explorer container on the host

cmd/puppeth/module_faucet.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
"github.com/ethereum/go-ethereum/log"
3131
)
3232

33-
// faucetDockerfile is the Dockerfile required to build an faucet container to
33+
// faucetDockerfile is the Dockerfile required to build a faucet container to
3434
// grant crypto tokens based on GitHub authentications.
3535
var faucetDockerfile = `
3636
FROM ethereum/client-go:alltools-latest
@@ -138,7 +138,7 @@ func deployFaucet(client *sshClient, network string, bootnodes []string, config
138138
return nil, client.Stream(fmt.Sprintf("cd %s && docker-compose -p %s up -d --build --force-recreate", workdir, network))
139139
}
140140

141-
// faucetInfos is returned from an faucet status check to allow reporting various
141+
// faucetInfos is returned from a faucet status check to allow reporting various
142142
// configuration parameters.
143143
type faucetInfos struct {
144144
node *nodeInfos
@@ -181,7 +181,7 @@ func (info *faucetInfos) Report() map[string]string {
181181
return report
182182
}
183183

184-
// checkFaucet does a health-check against an faucet server to verify whether
184+
// checkFaucet does a health-check against a faucet server to verify whether
185185
// it's running, and if yes, gathering a collection of useful infos about it.
186186
func checkFaucet(client *sshClient, network string) (*faucetInfos, error) {
187187
// Inspect a possible faucet container on the host

cmd/puppeth/module_node.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ func (info *nodeInfos) Report() map[string]string {
198198
return report
199199
}
200200

201-
// checkNode does a health-check against an boot or seal node server to verify
201+
// checkNode does a health-check against a boot or seal node server to verify
202202
// whether it's running, and if yes, whether it's responsive.
203203
func checkNode(client *sshClient, network string, boot bool) (*nodeInfos, error) {
204204
kind := "bootnode"

console/bridge.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func (b *bridge) NewAccount(call otto.FunctionCall) (response otto.Value) {
8787
// OpenWallet is a wrapper around personal.openWallet which can interpret and
8888
// react to certain error messages, such as the Trezor PIN matrix request.
8989
func (b *bridge) OpenWallet(call otto.FunctionCall) (response otto.Value) {
90-
// Make sure we have an wallet specified to open
90+
// Make sure we have a wallet specified to open
9191
if !call.Argument(0).IsString() {
9292
throwJSException("first argument must be the wallet URL to open")
9393
}

core/bloombits/matcher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ func (m *Matcher) distributor(dist chan *request, session *MatcherSession) {
392392
shutdown = session.quit // Shutdown request channel, will gracefully wait for pending requests
393393
)
394394

395-
// assign is a helper method fo try to assign a pending bit an an actively
395+
// assign is a helper method fo try to assign a pending bit an actively
396396
// listening servicer, or schedule it up for later when one arrives.
397397
assign := func(bit uint) {
398398
select {

eth/downloader/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func NewPublicDownloaderAPI(d *Downloader, m *event.TypeMux) *PublicDownloaderAP
5151
return api
5252
}
5353

54-
// eventLoop runs an loop until the event mux closes. It will install and uninstall new
54+
// eventLoop runs a loop until the event mux closes. It will install and uninstall new
5555
// sync subscriptions and broadcasts sync status updates to the installed sync subscriptions.
5656
func (api *PublicDownloaderAPI) eventLoop() {
5757
var (

eth/fetcher/fetcher_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ func (f *fetcherTester) makeBodyFetcher(peer string, blocks map[common.Hash]*typ
198198
}
199199
}
200200

201-
// verifyFetchingEvent verifies that one single event arrive on an fetching channel.
201+
// verifyFetchingEvent verifies that one single event arrive on a fetching channel.
202202
func verifyFetchingEvent(t *testing.T, fetching chan []common.Hash, arrive bool) {
203203
if arrive {
204204
select {

internal/jsre/deps/web3.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)