Skip to content

Commit feec26d

Browse files
authored
fix: correct spelling inconsistencies throughout the codebase (#24963)
1 parent 5fe1822 commit feec26d

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

codec/amino_codec_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func createTestCodec() *codec.LegacyAmino {
2222
return cdc
2323
}
2424

25-
func TestAminoMarsharlInterface(t *testing.T) {
25+
func TestAminoMarshalInterface(t *testing.T) {
2626
cdc := codec.NewAminoCodec(createTestCodec())
2727
m := interfaceMarshaler{cdc.MarshalInterface, cdc.UnmarshalInterface}
2828
testInterfaceMarshaling(require.New(t), m, true)

codec/codec.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
type (
1212
// Codec defines a functionality for serializing other objects.
13-
// Users can defin a custom Protobuf-based serialization.
13+
// Users can define a custom Protobuf-based serialization.
1414
// Note, Amino can still be used without any dependency on Protobuf.
1515
// SDK provides to Codec implementations:
1616
//

codec/proto_codec_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func createTestInterfaceRegistry() types.InterfaceRegistry {
3636
return interfaceRegistry
3737
}
3838

39-
func TestProtoMarsharlInterface(t *testing.T) {
39+
func TestProtoMarshalInterface(t *testing.T) {
4040
cdc := codec.NewProtoCodec(createTestInterfaceRegistry())
4141
m := interfaceMarshaler{cdc.MarshalInterface, cdc.UnmarshalInterface}
4242
testInterfaceMarshaling(require.New(t), m, false)

store/internal/conv/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
// Package conv provides internal functions for convertions and data manipulation
1+
// Package conv provides internal functions for conversions and data manipulation
22
package conv

store/prefix/store.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var _ types.KVStore = Store{}
1414

1515
// Store is similar with cometbft/cometbft/libs/db/prefix_db
1616
// both gives access only to the limited subset of the store
17-
// for convinience or safety
17+
// for convenience or safety
1818
type Store struct {
1919
parent types.KVStore
2020
prefix []byte

store/types/gas.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ func (g *infiniteGasMeter) ConsumeGas(amount Gas, descriptor string) {
191191
// RefundGas will deduct the given amount from the gas consumed. If the amount is greater than the
192192
// gas consumed, the function will panic.
193193
//
194-
// Use case: This functionality enables refunding gas to the trasaction or block gas pools so that
194+
// Use case: This functionality enables refunding gas to the transaction or block gas pools so that
195195
// EVM-compatible chains can fully support the go-ethereum StateDb interface.
196196
// See https://github.com/cosmos/cosmos-sdk/pull/9403 for reference.
197197
func (g *infiniteGasMeter) RefundGas(amount Gas, descriptor string) {

x/bank/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ Example Output:
10021002

10031003
### SendEnabled
10041004

1005-
The `SendEnabled` enpoints allows users to query the SendEnabled entries of the `bank` module.
1005+
The `SendEnabled` endpoints allows users to query the SendEnabled entries of the `bank` module.
10061006

10071007
Any denominations NOT returned, use the `Params.DefaultSendEnabled` value.
10081008

x/gov/types/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package types
22

3-
// Config is a config struct used for intialising the gov module to avoid using globals.
3+
// Config is a config struct used for initialising the gov module to avoid using globals.
44
type Config struct {
55
// MaxMetadataLen defines the maximum proposal metadata length.
66
MaxMetadataLen uint64

x/params/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,4 @@ Modules often define parameters as a proto message. The generated struct can imp
7676
* `KeyTable.RegisterParamSet()`: registers all parameters in the struct
7777
* `Subspace.{Get, Set}ParamSet()`: Get to & Set from the struct
7878

79-
The implementor should be a pointer in order to use `GetParamSet()`.
79+
The implementer should be a pointer in order to use `GetParamSet()`.

0 commit comments

Comments
 (0)