Skip to content

Commit

Permalink
all: fix various comment typos (ethereum#17591)
Browse files Browse the repository at this point in the history
* swarm: fixed comment typo
* eth: fixed comment typo
* cmd/puppeth: fixed comment typo
  • Loading branch information
hackmod authored and fjl committed Sep 19, 2018
1 parent c35659c commit 6975c72
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cmd/puppeth/wizard_dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (w *wizard) deployDashboard() {
pages = append(pages, page)
}
}
// Promt the user to chose one, enter manually or simply not list this service
// Prompt the user to chose one, enter manually or simply not list this service
defLabel, defChoice := "don't list", len(pages)+2
if len(pages) > 0 {
defLabel, defChoice = pages[0], 1
Expand Down
2 changes: 1 addition & 1 deletion eth/api_tracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func (api *PrivateDebugAPI) TraceChain(ctx context.Context, start, end rpc.Block

// traceChain configures a new tracer according to the provided configuration, and
// executes all the transactions contained within. The return value will be one item
// per transaction, dependent on the requestd tracer.
// per transaction, dependent on the requested tracer.
func (api *PrivateDebugAPI) traceChain(ctx context.Context, start, end *types.Block, config *TraceConfig) (*rpc.Subscription, error) {
// Tracing a chain is a **long** operation, only do with subscriptions
notifier, supported := rpc.NotifierFromContext(ctx)
Expand Down
2 changes: 1 addition & 1 deletion swarm/network/simulation/simulation.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ type Result struct {
}

// Run calls the RunFunc function while taking care of
// cancelation provided through the Context.
// cancellation provided through the Context.
func (s *Simulation) Run(ctx context.Context, f RunFunc) (r Result) {
//if the option is set to run a HTTP server with the simulation,
//init the server and start it
Expand Down
2 changes: 1 addition & 1 deletion swarm/network/stream/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func (p *Peer) SendOfferedHashes(s *server, f, t uint64) error {
if err != nil {
return err
}
// true only when quiting
// true only when quitting
if len(hashes) == 0 {
return nil
}
Expand Down
4 changes: 2 additions & 2 deletions swarm/pot/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ OR distance over finite set of integers).
Methods take a comparison operator (pof, proximity order function) to compare two
value types. The default pof assumes Val to be or project to a byte slice using
the reverse rank on the MSB first XOR logarithmic disctance.
the reverse rank on the MSB first XOR logarithmic distance.
If the address space if limited, equality is defined as the maximum proximity order.
The container offers applicative (funcional) style methods on PO trees:
The container offers applicative (functional) style methods on PO trees:
* adding/removing en element
* swap (value based add/remove)
* merging two PO trees (union)
Expand Down

0 comments on commit 6975c72

Please sign in to comment.