Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos across multiple files #1742

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion accounts/abi/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
// don't get the signature canonical representation as the first LOG topic.
type Event struct {
// Name is the event name used for internal representation. It's derived from
// the raw name and a suffix will be added in the case of a event overload.
// the raw name and a suffix will be added in the case of an event overload.
//
// e.g.
// These are two events that have the same name:
Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/reflect.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"strings"
)

// ConvertType converts an interface of a runtime type into a interface of the
// ConvertType converts an interface of a runtime type into an interface of the
// given type
// e.g. turn
// var fields []reflect.StructField
Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/type_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"github.com/ethereum/go-ethereum/common"
)

// typeWithoutStringer is a alias for the Type type which simply doesn't implement
// typeWithoutStringer is an alias for the Type type which simply doesn't implement
// the stringer interface to allow printing type details in the tests below.
type typeWithoutStringer Type

Expand Down
2 changes: 1 addition & 1 deletion cmd/checkpoint-admin/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func ecrecover(sighash []byte, sig []byte) common.Address {
}

// publish registers the specified checkpoint which generated by connected node
// with a authorised private key.
// with an authorised private key.
func publish(ctx *cli.Context) error {
// Print the checkpoint oracle's current status to make sure we're interacting
// with the correct network and contract.
Expand Down
2 changes: 1 addition & 1 deletion consensus/istanbul/common/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var (
// ErrInvalidNonce is returned if a block's nonce is invalid
ErrInvalidNonce = errors.New("invalid nonce")

// ErrInvalidUncleHash is returned if a block contains an non-empty uncle list.
// ErrInvalidUncleHash is returned if a block contains a non-empty uncle list.
ErrInvalidUncleHash = errors.New("non empty uncle hash")

// ErrInconsistentValidatorSet is returned if the validator set is inconsistent
Expand Down
2 changes: 1 addition & 1 deletion consensus/istanbul/ibft/engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ func sigHash(header *types.Header) (hash common.Hash) {
return hash
}

// prepareExtra returns a extra-data of the given header and validators
// prepareExtra returns an extra-data of the given header and validators
func prepareExtra(header *types.Header, vals []common.Address) ([]byte, error) {
var buf bytes.Buffer

Expand Down
2 changes: 1 addition & 1 deletion core/state/iterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type NodeIterator struct {
Error error // Failure set in case of an internal error in the iterator
}

// NewNodeIterator creates an post-order state node iterator.
// NewNodeIterator creates a post-order state node iterator.
func NewNodeIterator(state *StateDB) *NodeIterator {
return &NodeIterator{
state: state,
Expand Down
2 changes: 1 addition & 1 deletion core/state/snapshot/iterator_fast.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"github.com/ethereum/go-ethereum/common"
)

// weightedIterator is a iterator with an assigned weight. It is used to prioritise
// weightedIterator is an iterator with an assigned weight. It is used to prioritise
// which account or storage slot is the correct one if multiple iterators find the
// same one (modified in multiple consecutive blocks).
type weightedIterator struct {
Expand Down
2 changes: 1 addition & 1 deletion core/vm/contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type ContractRef interface {
// is a ContractRef.
type AccountRef common.Address

// Address casts AccountRef to a Address
// Address casts AccountRef to an Address
func (ar AccountRef) Address() common.Address { return (common.Address)(ar) }

// Contract represents an ethereum contract in the state database. It contains
Expand Down
2 changes: 1 addition & 1 deletion eth/protocols/snap/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (p *AccountRangePacket) Unpack() ([]common.Hash, [][]byte, error) {
return hashes, accounts, nil
}

// GetStorageRangesPacket represents an storage slot query.
// GetStorageRangesPacket represents a storage slot query.
type GetStorageRangesPacket struct {
ID uint64 // Request ID to match up responses with
Root common.Hash // Root hash of the account trie to serve
Expand Down
2 changes: 1 addition & 1 deletion extension/extension_utilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

// generateUuid sends some data to the linked Private Transaction Manager which
// uses a randomly generated key to encrypt the data and then hash it this
// means we get a effectively random hash, whilst also having a reference
// means we get an effectively random hash, whilst also having a reference
// transaction inside the PTM
func generateUuid(contractAddress common.Address, privateFrom string, privateFor []string, ptm private.PrivateTransactionManager) (string, error) {
// to ensure recoverability , the UUID generation logic is as below:
Expand Down
2 changes: 1 addition & 1 deletion miner/unconfirmed.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type chainRetriever interface {
}

// unconfirmedBlock is a small collection of metadata about a locally mined block
// that is placed into a unconfirmed set for canonical chain inclusion tracking.
// that is placed into an unconfirmed set for canonical chain inclusion tracking.
type unconfirmedBlock struct {
index uint64
hash common.Hash
Expand Down