Skip to content

Commit 6975c72

Browse files
hackmodfjl
authored andcommitted
all: fix various comment typos (#17591)
* swarm: fixed comment typo * eth: fixed comment typo * cmd/puppeth: fixed comment typo
1 parent c35659c commit 6975c72

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎cmd/puppeth/wizard_dashboard.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func (w *wizard) deployDashboard() {
9292
pages = append(pages, page)
9393
}
9494
}
95-
// Promt the user to chose one, enter manually or simply not list this service
95+
// Prompt the user to chose one, enter manually or simply not list this service
9696
defLabel, defChoice := "don't list", len(pages)+2
9797
if len(pages) > 0 {
9898
defLabel, defChoice = pages[0], 1

‎eth/api_tracer.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func (api *PrivateDebugAPI) TraceChain(ctx context.Context, start, end rpc.Block
127127

128128
// traceChain configures a new tracer according to the provided configuration, and
129129
// executes all the transactions contained within. The return value will be one item
130-
// per transaction, dependent on the requestd tracer.
130+
// per transaction, dependent on the requested tracer.
131131
func (api *PrivateDebugAPI) traceChain(ctx context.Context, start, end *types.Block, config *TraceConfig) (*rpc.Subscription, error) {
132132
// Tracing a chain is a **long** operation, only do with subscriptions
133133
notifier, supported := rpc.NotifierFromContext(ctx)

‎swarm/network/simulation/simulation.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ type Result struct {
112112
}
113113

114114
// Run calls the RunFunc function while taking care of
115-
// cancelation provided through the Context.
115+
// cancellation provided through the Context.
116116
func (s *Simulation) Run(ctx context.Context, f RunFunc) (r Result) {
117117
//if the option is set to run a HTTP server with the simulation,
118118
//init the server and start it

‎swarm/network/stream/peer.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ func (p *Peer) SendOfferedHashes(s *server, f, t uint64) error {
165165
if err != nil {
166166
return err
167167
}
168-
// true only when quiting
168+
// true only when quitting
169169
if len(hashes) == 0 {
170170
return nil
171171
}

‎swarm/pot/doc.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ OR distance over finite set of integers).
2727
2828
Methods take a comparison operator (pof, proximity order function) to compare two
2929
value types. The default pof assumes Val to be or project to a byte slice using
30-
the reverse rank on the MSB first XOR logarithmic disctance.
30+
the reverse rank on the MSB first XOR logarithmic distance.
3131
3232
If the address space if limited, equality is defined as the maximum proximity order.
3333
34-
The container offers applicative (funcional) style methods on PO trees:
34+
The container offers applicative (functional) style methods on PO trees:
3535
* adding/removing en element
3636
* swap (value based add/remove)
3737
* merging two PO trees (union)

0 commit comments

Comments
 (0)