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 article usage in code comments and documentation #13195

Open
wants to merge 8 commits into
base: main
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 @@ -32,7 +32,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 @@ -27,7 +27,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 @@ -28,7 +28,7 @@ import (
libcommon "github.com/erigontech/erigon-lib/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 cl/cltypes/block_production.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
)

// BlindOrExecutionBeaconBlock is a union type that can be either a BlindedBeaconBlock or a BeaconBlock, depending on the context.
// It's a intermediate type used in the block production process.
// It's an intermediate type used in the block production process.
type BlindOrExecutionBeaconBlock struct {
Slot uint64 `json:"-"`
ProposerIndex uint64 `json:"-"`
Expand Down
2 changes: 1 addition & 1 deletion cmd/erigoncustom/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func runErigon(ctx *cli.Context) error {
//err := eri.Serve()

//if err != nil {
// log.Error("error while serving a Erigon node", "err", err)
// log.Error("error while serving an Erigon node", "err", err)
// return err
//}
return nil
Expand Down
2 changes: 1 addition & 1 deletion consensus/aura/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"github.com/erigontech/erigon/consensus"
)

// Draws an validator nonce modulo number of validators.
// Draws a validator nonce modulo number of validators.
func GetFromValidatorSet(set ValidatorSet, parent libcommon.Hash, nonce uint, call consensus.Call) (libcommon.Address, error) {
//d, err := set.defaultCaller(parent)
//if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion consensus/merge/merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ var (
// errInvalidNonce is returned if the nonce is non-zero.
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")

errOlderBlockTime = errors.New("timestamp older than parent")
Expand Down
2 changes: 1 addition & 1 deletion turbo/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with Erigon. If not, see <http://www.gnu.org/licenses/>.

// Package node contains classes for running a Erigon node.
// Package node contains classes for running an Erigon node.
package node

import (
Expand Down