From 6fbd1e218db7690707b65cd9ef069a067c175fe6 Mon Sep 17 00:00:00 2001 From: Tristav <124001124+Pricstas@users.noreply.github.com> Date: Fri, 3 Jan 2025 16:08:50 +0100 Subject: [PATCH] Fix article usage in code comments and documentation (#13195) This pull request corrects the use of articles in multiple code files, specifically replacing the incorrect "a" with "an" and vice versa in places where the next word starts with a vowel sound or a consonant sound. These changes improve the clarity and grammatical accuracy of comments and documentation. --- accounts/abi/event.go | 2 +- accounts/abi/reflect.go | 2 +- accounts/abi/type_test.go | 2 +- cl/cltypes/block_production.go | 2 +- cmd/erigoncustom/main.go | 2 +- consensus/aura/config.go | 2 +- consensus/merge/merge.go | 2 +- turbo/node/node.go | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/accounts/abi/event.go b/accounts/abi/event.go index 84aa6e02c6a..7e7b76b3186 100644 --- a/accounts/abi/event.go +++ b/accounts/abi/event.go @@ -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: diff --git a/accounts/abi/reflect.go b/accounts/abi/reflect.go index 4e381f3847f..3d5edcec6de 100644 --- a/accounts/abi/reflect.go +++ b/accounts/abi/reflect.go @@ -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 diff --git a/accounts/abi/type_test.go b/accounts/abi/type_test.go index 9a0816d691e..ed45449bf3f 100644 --- a/accounts/abi/type_test.go +++ b/accounts/abi/type_test.go @@ -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 diff --git a/cl/cltypes/block_production.go b/cl/cltypes/block_production.go index 2d623366a3a..197b5ef9150 100644 --- a/cl/cltypes/block_production.go +++ b/cl/cltypes/block_production.go @@ -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:"-"` diff --git a/cmd/erigoncustom/main.go b/cmd/erigoncustom/main.go index 8318fb40219..4c93a12e8ec 100644 --- a/cmd/erigoncustom/main.go +++ b/cmd/erigoncustom/main.go @@ -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 diff --git a/consensus/aura/config.go b/consensus/aura/config.go index 2f4d775870f..9c6e1c4abbb 100644 --- a/consensus/aura/config.go +++ b/consensus/aura/config.go @@ -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 { diff --git a/consensus/merge/merge.go b/consensus/merge/merge.go index 1151b255549..e50d91ab447 100644 --- a/consensus/merge/merge.go +++ b/consensus/merge/merge.go @@ -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") diff --git a/turbo/node/node.go b/turbo/node/node.go index 7e98e7f57c9..2c839487439 100644 --- a/turbo/node/node.go +++ b/turbo/node/node.go @@ -14,7 +14,7 @@ // You should have received a copy of the GNU Lesser General Public License // along with Erigon. If not, see . -// Package node contains classes for running a Erigon node. +// Package node contains classes for running an Erigon node. package node import (