Skip to content

Commit

Permalink
typo: fix struct names in comments (#2256)
Browse files Browse the repository at this point in the history
  • Loading branch information
teslaedison authored Mar 11, 2024
1 parent 16c6e46 commit 4051c34
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/state/shared_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/ethereum/go-ethereum/common"
)

// sharedPool is used to store maps of originStorage of stateObjects
// StoragePool is used to store maps of originStorage of stateObjects
type StoragePool struct {
sync.RWMutex
sharedMap map[common.Address]*sync.Map
Expand Down
2 changes: 1 addition & 1 deletion core/vm/contracts_lightclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func (c *iavlMerkleProofValidate) Run(input []byte) (result []byte, err error) {
return c.basicIavlMerkleProofValidate.Run(input)
}

// tmHeaderValidate implemented as a native contract.
// tmHeaderValidateNano implemented as a native contract.
type tmHeaderValidateNano struct{}

func (c *tmHeaderValidateNano) RequiredGas(input []byte) uint64 {
Expand Down
4 changes: 2 additions & 2 deletions metrics/gauge.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ package metrics

import "sync/atomic"

// gaugeSnapshot contains a readonly int64.
// GaugeSnapshot contains a readonly int64.
type GaugeSnapshot interface {
Value() int64
}

// Gauges hold an int64 value that can be set arbitrarily.
// Gauge hold an int64 value that can be set arbitrarily.
type Gauge interface {
Snapshot() GaugeSnapshot
Update(int64)
Expand Down
2 changes: 1 addition & 1 deletion p2p/discover/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func init() {
}
}

// meteredConn is a wrapper around a net.UDPConn that meters both the
// meteredUdpConn is a wrapper around a net.UDPConn that meters both the
// inbound and outbound network traffic.
type meteredUdpConn struct {
UDPConn
Expand Down

0 comments on commit 4051c34

Please sign in to comment.