From 294591e67eb33801136e18c9c26218469ea2d3e1 Mon Sep 17 00:00:00 2001 From: Daniel Liu <139250065@qq.com> Date: Wed, 24 Sep 2025 07:57:33 +0800 Subject: [PATCH] all: remove duplicate word in comments (#1570) --- cmd/utils/flags.go | 2 +- core/bloombits/matcher.go | 2 +- miner/unconfirmed.go | 2 +- p2p/simulations/events.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index ed3b34d99d..5dcc5bbb1a 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -494,7 +494,7 @@ var ( } HTTPPathPrefixFlag = &cli.StringFlag{ Name: "http-rpcprefix", - Usage: "HTTP path path prefix on which JSON-RPC is served. Use '/' to serve on all paths.", + Usage: "HTTP path prefix on which JSON-RPC is served. Use '/' to serve on all paths.", Value: "", Category: flags.APICategory, } diff --git a/core/bloombits/matcher.go b/core/bloombits/matcher.go index 7241141375..d1ff0785d2 100644 --- a/core/bloombits/matcher.go +++ b/core/bloombits/matcher.go @@ -392,7 +392,7 @@ func (m *Matcher) distributor(dist chan *request, session *MatcherSession) { shutdown = session.quit // Shutdown request channel, will gracefully wait for pending requests ) - // assign is a helper method fo try to assign a pending bit an an actively + // assign is a helper method fo try to assign a pending bit an actively // listening servicer, or schedule it up for later when one arrives. assign := func(bit uint) { select { diff --git a/miner/unconfirmed.go b/miner/unconfirmed.go index f5fdf019e7..ea6001c7d5 100644 --- a/miner/unconfirmed.go +++ b/miner/unconfirmed.go @@ -40,7 +40,7 @@ type unconfirmedBlock struct { } // unconfirmedBlocks implements a data structure to maintain locally mined blocks -// have have not yet reached enough maturity to guarantee chain inclusion. It is +// have not yet reached enough maturity to guarantee chain inclusion. It is // used by the miner to provide logs to the user when a previously mined block // has a high enough guarantee to not be reorged out of the canonical chain. type unconfirmedBlocks struct { diff --git a/p2p/simulations/events.go b/p2p/simulations/events.go index f17958c689..be249af163 100644 --- a/p2p/simulations/events.go +++ b/p2p/simulations/events.go @@ -30,7 +30,7 @@ const ( EventTypeNode EventType = "node" // EventTypeConn is the type of event emitted when a connection is - // is either established or dropped between two nodes + // either established or dropped between two nodes EventTypeConn EventType = "conn" // EventTypeMsg is the type of event emitted when a p2p message it