Skip to content

Commit 9eca469

Browse files
hyhnetjorgemmsilva
authored andcommitted
all: fix typos in comments (ethereum#29186)
1 parent 47bfaec commit 9eca469

File tree

14 files changed

+16
-16
lines changed

14 files changed

+16
-16
lines changed

cmd/evm/internal/t8ntool/block.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ func readInput(ctx *cli.Context) (*bbInput, error) {
242242
if headerStr == stdinSelector || ommersStr == stdinSelector || txsStr == stdinSelector || cliqueStr == stdinSelector {
243243
decoder := json.NewDecoder(os.Stdin)
244244
if err := decoder.Decode(inputData); err != nil {
245-
return nil, NewError(ErrorJson, fmt.Errorf("failed unmarshaling stdin: %v", err))
245+
return nil, NewError(ErrorJson, fmt.Errorf("failed unmarshalling stdin: %v", err))
246246
}
247247
}
248248
if cliqueStr != stdinSelector && cliqueStr != "" {

cmd/evm/internal/t8ntool/transaction.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func Transaction(ctx *cli.Context) error {
8686
if txStr == stdinSelector {
8787
decoder := json.NewDecoder(os.Stdin)
8888
if err := decoder.Decode(inputData); err != nil {
89-
return NewError(ErrorJson, fmt.Errorf("failed unmarshaling stdin: %v", err))
89+
return NewError(ErrorJson, fmt.Errorf("failed unmarshalling stdin: %v", err))
9090
}
9191
// Decode the body of already signed transactions
9292
body = common.FromHex(inputData.TxRlp)

cmd/evm/internal/t8ntool/transition.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func Transition(ctx *cli.Context) error {
135135
if allocStr == stdinSelector || envStr == stdinSelector || txStr == stdinSelector {
136136
decoder := json.NewDecoder(os.Stdin)
137137
if err := decoder.Decode(inputData); err != nil {
138-
return NewError(ErrorJson, fmt.Errorf("failed unmarshaling stdin: %v", err))
138+
return NewError(ErrorJson, fmt.Errorf("failed unmarshalling stdin: %v", err))
139139
}
140140
}
141141
if allocStr != stdinSelector {

cmd/evm/internal/t8ntool/tx_iterator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func loadTransactions(txStr string, inputData *input, env stEnv, chainConfig *pa
127127
return newRlpTxIterator(body), nil
128128
}
129129
if err := json.Unmarshal(data, &txsWithKeys); err != nil {
130-
return nil, NewError(ErrorJson, fmt.Errorf("failed unmarshaling txs-file: %v", err))
130+
return nil, NewError(ErrorJson, fmt.Errorf("failed unmarshalling txs-file: %v", err))
131131
}
132132
} else {
133133
if len(inputData.TxRlp) > 0 {

cmd/evm/internal/t8ntool/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func readFile(path, desc string, dest interface{}) error {
3333
defer inFile.Close()
3434
decoder := json.NewDecoder(inFile)
3535
if err := decoder.Decode(dest); err != nil {
36-
return NewError(ErrorJson, fmt.Errorf("failed unmarshaling %s file: %v", desc, err))
36+
return NewError(ErrorJson, fmt.Errorf("failed unmarshalling %s file: %v", desc, err))
3737
}
3838
return nil
3939
}

core/types/account.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ type accountMarshaling struct {
5252
}
5353

5454
// storageJSON represents a 256 bit byte array, but allows less than 256 bits when
55-
// unmarshaling from hex.
55+
// unmarshalling from hex.
5656
type storageJSON common.Hash
5757

5858
func (h *storageJSON) UnmarshalText(text []byte) error {

core/types/receipt_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ func TestReceiptJSON(t *testing.T) {
343343
r := Receipt{}
344344
err = r.UnmarshalJSON(b)
345345
if err != nil {
346-
t.Fatal("error unmarshaling receipt from json:", err)
346+
t.Fatal("error unmarshalling receipt from json:", err)
347347
}
348348
}
349349
}
@@ -360,7 +360,7 @@ func TestEffectiveGasPriceNotRequired(t *testing.T) {
360360
r2 := Receipt{}
361361
err = r2.UnmarshalJSON(b)
362362
if err != nil {
363-
t.Fatal("error unmarshaling receipt from json:", err)
363+
t.Fatal("error unmarshalling receipt from json:", err)
364364
}
365365
}
366366

crypto/kzg4844/kzg4844.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ type Claim [32]byte
8585
var useCKZG atomic.Bool
8686

8787
// UseCKZG can be called to switch the default Go implementation of KZG to the C
88-
// library if fo some reason the user wishes to do so (e.g. consensus bug in one
88+
// library if for some reason the user wishes to do so (e.g. consensus bug in one
8989
// or the other).
9090
func UseCKZG(use bool) error {
9191
if use && !ckzgAvailable {

crypto/secp256k1/libsecp256k1/include/secp256k1.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ SECP256K1_API int secp256k1_ecdsa_signature_serialize_compact(
357357
/** Verify an ECDSA signature.
358358
*
359359
* Returns: 1: correct signature
360-
* 0: incorrect or unparseable signature
360+
* 0: incorrect or unparsable signature
361361
* Args: ctx: a secp256k1 context object, initialized for verification.
362362
* In: sig: the signature being verified (cannot be NULL)
363363
* msg32: the 32-byte message hash being verified (cannot be NULL)

crypto/secp256k1/libsecp256k1/sage/group_prover.sage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# - A constraint describing the requirements of the law, called "require"
1818
# * Implementations are transliterated into functions that operate as well on
1919
# algebraic input points, and are called once per combination of branches
20-
# exectured. Each execution returns:
20+
# executed. Each execution returns:
2121
# - A constraint describing the assumptions this implementation requires
2222
# (such as Z1=1), called "assumeFormula"
2323
# - A constraint describing the assumptions this specific branch requires,

0 commit comments

Comments
 (0)