aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHackyMiner <hackyminer@gmail.com>2018-09-20 00:10:40 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-09-20 00:10:40 +0800
commit6975c7298102f73981a62871f6da8db2b5dbf32c (patch)
tree53f440dcae0e0f48cd9d7de52e2cea96ecbe9664
parentc35659c6a0d8c9dd7b7616bb91700385292f403a (diff)
downloadgo-tangerine-6975c7298102f73981a62871f6da8db2b5dbf32c.tar
go-tangerine-6975c7298102f73981a62871f6da8db2b5dbf32c.tar.gz
go-tangerine-6975c7298102f73981a62871f6da8db2b5dbf32c.tar.bz2
go-tangerine-6975c7298102f73981a62871f6da8db2b5dbf32c.tar.lz
go-tangerine-6975c7298102f73981a62871f6da8db2b5dbf32c.tar.xz
go-tangerine-6975c7298102f73981a62871f6da8db2b5dbf32c.tar.zst
go-tangerine-6975c7298102f73981a62871f6da8db2b5dbf32c.zip
all: fix various comment typos (#17591)
* swarm: fixed comment typo * eth: fixed comment typo * cmd/puppeth: fixed comment typo
-rw-r--r--cmd/puppeth/wizard_dashboard.go2
-rw-r--r--eth/api_tracer.go2
-rw-r--r--swarm/network/simulation/simulation.go2
-rw-r--r--swarm/network/stream/peer.go2
-rw-r--r--swarm/pot/doc.go4
5 files changed, 6 insertions, 6 deletions
diff --git a/cmd/puppeth/wizard_dashboard.go b/cmd/puppeth/wizard_dashboard.go
index 5f781c415..1a01631ff 100644
--- a/cmd/puppeth/wizard_dashboard.go
+++ b/cmd/puppeth/wizard_dashboard.go
@@ -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
diff --git a/eth/api_tracer.go b/eth/api_tracer.go
index 0a8b9a994..5b7f168ec 100644
--- a/eth/api_tracer.go
+++ b/eth/api_tracer.go
@@ -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)
diff --git a/swarm/network/simulation/simulation.go b/swarm/network/simulation/simulation.go
index 096f7322c..2c7a18b09 100644
--- a/swarm/network/simulation/simulation.go
+++ b/swarm/network/simulation/simulation.go
@@ -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
diff --git a/swarm/network/stream/peer.go b/swarm/network/stream/peer.go
index 1466a7a9c..5fdaa7b87 100644
--- a/swarm/network/stream/peer.go
+++ b/swarm/network/stream/peer.go
@@ -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
}
diff --git a/swarm/pot/doc.go b/swarm/pot/doc.go
index 4c0a03065..cb6faea57 100644
--- a/swarm/pot/doc.go
+++ b/swarm/pot/doc.go
@@ -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)