Skip to content

Commit 6663e5d

Browse files
liangdzoufjl
authored andcommitted
all: fix various comment typos (#17748)
1 parent 30cd5c1 commit 6663e5d

9 files changed

Lines changed: 10 additions & 10 deletions

File tree

‎core/vm/instructions.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ func opCreate2(pc *uint64, interpreter *EVMInterpreter, contract *Contract, memo
727727
}
728728

729729
func opCall(pc *uint64, interpreter *EVMInterpreter, contract *Contract, memory *Memory, stack *Stack) ([]byte, error) {
730-
// Pop gas. The actual gas in in interpreter.evm.callGasTemp.
730+
// Pop gas. The actual gas in interpreter.evm.callGasTemp.
731731
interpreter.intPool.put(stack.pop())
732732
gas := interpreter.evm.callGasTemp
733733
// Pop other call parameters.

‎core/vm/memory.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type Memory struct {
2929
lastGasCost uint64
3030
}
3131

32-
// NewMemory returns a new memory memory model.
32+
// NewMemory returns a new memory model.
3333
func NewMemory() *Memory {
3434
return &Memory{}
3535
}

‎crypto/secp256k1/libsecp256k1/src/num.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ static void secp256k1_num_mul(secp256k1_num *r, const secp256k1_num *a, const se
5454
even if r was negative. */
5555
static void secp256k1_num_mod(secp256k1_num *r, const secp256k1_num *m);
5656

57-
/** Right-shift the passed number by bits bits. */
57+
/** Right-shift the passed number by bits. */
5858
static void secp256k1_num_shift(secp256k1_num *r, int bits);
5959

6060
/** Check whether a number is zero. */

‎internal/ethapi/api.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ func (s *PrivateAccountAPI) Sign(ctx context.Context, data hexutil.Bytes, addr c
449449
// addr = ecrecover(hash, signature)
450450
//
451451
// Note, the signature must conform to the secp256k1 curve R, S and V values, where
452-
// the V value must be be 27 or 28 for legacy reasons.
452+
// the V value must be 27 or 28 for legacy reasons.
453453
//
454454
// https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_ecRecover
455455
func (s *PrivateAccountAPI) EcRecover(ctx context.Context, data, sig hexutil.Bytes) (common.Address, error) {

‎internal/jsre/deps/web3.js‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎miner/unconfirmed.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ type unconfirmedBlock struct {
4343
}
4444

4545
// unconfirmedBlocks implements a data structure to maintain locally mined blocks
46-
// have have not yet reached enough maturity to guarantee chain inclusion. It is
46+
// have not yet reached enough maturity to guarantee chain inclusion. It is
4747
// used by the miner to provide logs to the user when a previously mined block
4848
// has a high enough guarantee to not be reorged out of the canonical chain.
4949
type unconfirmedBlocks struct {

‎p2p/discv5/database_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ var nodeDBSeedQueryNodes = []struct {
173173
),
174174
pong: time.Now().Add(-3 * time.Hour),
175175
},
176-
// This one shouldn't be in in the result set because its
176+
// This one shouldn't be in the result set because its
177177
// nodeID is the local node's ID.
178178
{
179179
node: NewNode(

‎p2p/enode/nodedb_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ var nodeDBSeedQueryNodes = []struct {
171171
),
172172
pong: time.Now().Add(-3 * time.Hour),
173173
},
174-
// This one shouldn't be in in the result set because its
174+
// This one shouldn't be in the result set because its
175175
// nodeID is the local node's ID.
176176
{
177177
node: NewV4(

‎signer/core/api.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ func (api *SignerAPI) Sign(ctx context.Context, addr common.MixedcaseAddress, da
411411
// addr = ecrecover(hash, signature)
412412
//
413413
// Note, the signature must conform to the secp256k1 curve R, S and V values, where
414-
// the V value must be be 27 or 28 for legacy reasons.
414+
// the V value must be 27 or 28 for legacy reasons.
415415
//
416416
// https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_ecRecover
417417
func (api *SignerAPI) EcRecover(ctx context.Context, data, sig hexutil.Bytes) (common.Address, error) {

0 commit comments

Comments
 (0)