all: fix various comment typos (#17591)

* swarm: fixed comment typo
* eth: fixed comment typo
* cmd/puppeth: fixed comment typo
This commit is contained in:
HackyMiner
2018-09-20 01:10:40 +09:00
committed by Felix Lange
parent c35659c6a0
commit 6975c72981
5 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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
}

View File

@ -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)