Skip to content

Commit 69266fd

Browse files
wuxiangzhou2010firmianavan
authored andcommitted
all: fix various typos (ethereum#16533)
* fix typo * fix typo * fix typo
1 parent 397346a commit 69266fd

File tree

14 files changed

+23
-23
lines changed

14 files changed

+23
-23
lines changed

cmd/geth/main.go

+1-1
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

+1-1
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

+1-1
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

+3-3
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mobile/types.go

+8-8
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func (h *Header) EncodeRLP() ([]byte, error) {
8080
return rlp.EncodeToBytes(h.header)
8181
}
8282

83-
// NewHeaderFromJSON parses a header from an JSON data dump.
83+
// NewHeaderFromJSON parses a header from a JSON data dump.
8484
func NewHeaderFromJSON(data string) (*Header, error) {
8585
h := &Header{
8686
header: new(types.Header),
@@ -91,7 +91,7 @@ func NewHeaderFromJSON(data string) (*Header, error) {
9191
return h, nil
9292
}
9393

94-
// EncodeJSON encodes a header into an JSON data dump.
94+
// EncodeJSON encodes a header into a JSON data dump.
9595
func (h *Header) EncodeJSON() (string, error) {
9696
data, err := json.Marshal(h.header)
9797
return string(data), err
@@ -151,7 +151,7 @@ func (b *Block) EncodeRLP() ([]byte, error) {
151151
return rlp.EncodeToBytes(b.block)
152152
}
153153

154-
// NewBlockFromJSON parses a block from an JSON data dump.
154+
// NewBlockFromJSON parses a block from a JSON data dump.
155155
func NewBlockFromJSON(data string) (*Block, error) {
156156
b := &Block{
157157
block: new(types.Block),
@@ -162,7 +162,7 @@ func NewBlockFromJSON(data string) (*Block, error) {
162162
return b, nil
163163
}
164164

165-
// EncodeJSON encodes a block into an JSON data dump.
165+
// EncodeJSON encodes a block into a JSON data dump.
166166
func (b *Block) EncodeJSON() (string, error) {
167167
data, err := json.Marshal(b.block)
168168
return string(data), err
@@ -220,7 +220,7 @@ func (tx *Transaction) EncodeRLP() ([]byte, error) {
220220
return rlp.EncodeToBytes(tx.tx)
221221
}
222222

223-
// NewTransactionFromJSON parses a transaction from an JSON data dump.
223+
// NewTransactionFromJSON parses a transaction from a JSON data dump.
224224
func NewTransactionFromJSON(data string) (*Transaction, error) {
225225
tx := &Transaction{
226226
tx: new(types.Transaction),
@@ -231,7 +231,7 @@ func NewTransactionFromJSON(data string) (*Transaction, error) {
231231
return tx, nil
232232
}
233233

234-
// EncodeJSON encodes a transaction into an JSON data dump.
234+
// EncodeJSON encodes a transaction into a JSON data dump.
235235
func (tx *Transaction) EncodeJSON() (string, error) {
236236
data, err := json.Marshal(tx.tx)
237237
return string(data), err
@@ -312,7 +312,7 @@ func (r *Receipt) EncodeRLP() ([]byte, error) {
312312
return rlp.EncodeToBytes(r.receipt)
313313
}
314314

315-
// NewReceiptFromJSON parses a transaction receipt from an JSON data dump.
315+
// NewReceiptFromJSON parses a transaction receipt from a JSON data dump.
316316
func NewReceiptFromJSON(data string) (*Receipt, error) {
317317
r := &Receipt{
318318
receipt: new(types.Receipt),
@@ -323,7 +323,7 @@ func NewReceiptFromJSON(data string) (*Receipt, error) {
323323
return r, nil
324324
}
325325

326-
// EncodeJSON encodes a transaction receipt into an JSON data dump.
326+
// EncodeJSON encodes a transaction receipt into a JSON data dump.
327327
func (r *Receipt) EncodeJSON() (string, error) {
328328
data, err := rlp.EncodeToBytes(r.receipt)
329329
return string(data), err

node/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ func DefaultHTTPEndpoint() string {
209209
return config.HTTPEndpoint()
210210
}
211211

212-
// WSEndpoint resolves an websocket endpoint based on the configured host interface
212+
// WSEndpoint resolves a websocket endpoint based on the configured host interface
213213
// and port parameters.
214214
func (c *Config) WSEndpoint() string {
215215
if c.WSHost == "" {

rpc/doc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ An example method:
9292
Subscriptions are deleted when:
9393
- the user sends an unsubscribe request
9494
- the connection which was used to create the subscription is closed. This can be initiated
95-
by the client and server. The server will close the connection on an write error or when
95+
by the client and server. The server will close the connection on a write error or when
9696
the queue of buffered notifications gets too big.
9797
*/
9898
package rpc

swarm/network/kademlia/address.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func (a Address) Bin() string {
5151
/*
5252
Proximity(x, y) returns the proximity order of the MSB distance between x and y
5353
54-
The distance metric MSB(x, y) of two equal length byte sequences x an y is the
54+
The distance metric MSB(x, y) of two equal length byte sequences x and y is the
5555
value of the binary integer cast of the x^y, ie., x and y bitwise xor-ed.
5656
the binary cast is big endian: most significant bit first (=MSB).
5757

0 commit comments

Comments
 (0)