From 892f4d868c119033052dcecdf0a68c10367add01 Mon Sep 17 00:00:00 2001 From: David Klank <155117116+davidjsonn@users.noreply.github.com> Date: Tue, 29 Jul 2025 23:06:24 +0300 Subject: [PATCH] docs: fix misspelled issues (#24989) Co-authored-by: Alex | Interchain Labs --- codec/codec.go | 4 ++-- codec/yaml.go | 4 ++-- collections/corecompat/genesis.go | 2 +- core/CHANGELOG.md | 2 +- core/appmodule/genesis.go | 2 +- core/comet/service.go | 2 +- tests/integration/staking/keeper/msg_server_test.go | 2 +- tests/integration/staking/keeper/slash_test.go | 2 +- x/auth/vesting/client/cli/tx.go | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/codec/codec.go b/codec/codec.go index fd7064e0f2..20ca3a33d3 100644 --- a/codec/codec.go +++ b/codec/codec.go @@ -69,7 +69,7 @@ type ( // MarshalInterface is a helper method which will wrap `i` into `Any` for correct // binary interface (de)serialization. MarshalInterface(i proto.Message) ([]byte, error) - // UnmarshalInterface is a helper method which will parse binary enoded data + // UnmarshalInterface is a helper method which will parse binary encoded data // into `Any` and unpack any into the `ptr`. It fails if the target interface type // is not registered in codec, or is not compatible with the serialized data UnmarshalInterface(bz []byte, ptr any) error @@ -85,7 +85,7 @@ type ( // MarshalInterfaceJSON is a helper method which will wrap `i` into `Any` for correct // JSON interface (de)serialization. MarshalInterfaceJSON(i proto.Message) ([]byte, error) - // UnmarshalInterfaceJSON is a helper method which will parse JSON enoded data + // UnmarshalInterfaceJSON is a helper method which will parse JSON encoded data // into `Any` and unpack any into the `ptr`. It fails if the target interface type // is not registered in codec, or is not compatible with the serialized data UnmarshalInterfaceJSON(bz []byte, ptr any) error diff --git a/codec/yaml.go b/codec/yaml.go index 24a17f1cbb..55226bc587 100644 --- a/codec/yaml.go +++ b/codec/yaml.go @@ -6,10 +6,10 @@ import ( ) // MarshalYAML marshals toPrint using JSONCodec to leverage specialized MarshalJSON methods -// (usually related to serialize data with protobuf or amin depending on a configuration). +// (usually related to serialize data with protobuf or amino depending on a configuration). // This involves additional roundtrip through JSON. func MarshalYAML(cdc JSONCodec, toPrint proto.Message) ([]byte, error) { - // We are OK with the performance hit of the additional JSON roundtip. MarshalYAML is not + // We are OK with the performance hit of the additional JSON roundtrip. MarshalYAML is not // used in any critical parts of the system. bz, err := cdc.MarshalJSON(toPrint) if err != nil { diff --git a/collections/corecompat/genesis.go b/collections/corecompat/genesis.go index 70982bf882..d2780b1cda 100644 --- a/collections/corecompat/genesis.go +++ b/collections/corecompat/genesis.go @@ -14,7 +14,7 @@ type GenesisSource = func(field string) (io.ReadCloser, error) // abstract over a single JSON object or JSON in separate files that can be // streamed over. Modules should open a separate io.WriteCloser for each field // and should prefer writing fields as arrays when possible to support efficient -// iteration. It is important the caller closers the writer AND checks the error +// iteration. It is important the caller closes the writer AND checks the error // when done with it. It is expected that a stream of JSON data is written // to the writer. type GenesisTarget = func(field string) (io.WriteCloser, error) diff --git a/core/CHANGELOG.md b/core/CHANGELOG.md index 07a08153f4..52fe0fff57 100644 --- a/core/CHANGELOG.md +++ b/core/CHANGELOG.md @@ -55,7 +55,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ ## [v0.10.0](https://github.com/cosmos/cosmos-sdk/releases/tag/core%2Fv0.10.0) -* [#17383](https://github.com/cosmos/cosmos-sdk/pull/17383) Add `appmoduke.UpgradeModule` interface. +* [#17383](https://github.com/cosmos/cosmos-sdk/pull/17383) Add `appmodule.UpgradeModule` interface. ## [v0.9.0](https://github.com/cosmos/cosmos-sdk/releases/tag/core%2Fv0.9.0) diff --git a/core/appmodule/genesis.go b/core/appmodule/genesis.go index 7f955a4677..5719585e45 100644 --- a/core/appmodule/genesis.go +++ b/core/appmodule/genesis.go @@ -36,7 +36,7 @@ type GenesisSource = func(field string) (io.ReadCloser, error) // abstract over a single JSON object or JSON in separate files that can be // streamed over. Modules should open a separate io.WriteCloser for each field // and should prefer writing fields as arrays when possible to support efficient -// iteration. It is important the caller closers the writer AND checks the error +// iteration. It is important the caller closes the writer AND checks the error // when done with it. It is expected that a stream of JSON data is written // to the writer. type GenesisTarget = func(field string) (io.WriteCloser, error) diff --git a/core/comet/service.go b/core/comet/service.go index 5eaaa4fa72..99ab7efe5f 100644 --- a/core/comet/service.go +++ b/core/comet/service.go @@ -55,7 +55,7 @@ type CommitInfo interface { Votes() VoteInfos } -// VoteInfos is an interface to get specific votes in a efficient way +// VoteInfos is an interface to get specific votes in an efficient way type VoteInfos interface { Len() int Get(int) VoteInfo diff --git a/tests/integration/staking/keeper/msg_server_test.go b/tests/integration/staking/keeper/msg_server_test.go index f84c305795..2025cce716 100644 --- a/tests/integration/staking/keeper/msg_server_test.go +++ b/tests/integration/staking/keeper/msg_server_test.go @@ -119,7 +119,7 @@ func TestCancelUnbondingDelegation(t *testing.T) { name: "invalid delegator address", exceptErr: true, req: types.MsgCancelUnbondingDelegation{ - DelegatorAddress: "invalid_delegator_addrtess", + DelegatorAddress: "invalid_delegator_address", ValidatorAddress: resUnbond.ValidatorAddress, Amount: unbondingAmount, CreationHeight: 0, diff --git a/tests/integration/staking/keeper/slash_test.go b/tests/integration/staking/keeper/slash_test.go index 2d6d54d481..de574d7747 100644 --- a/tests/integration/staking/keeper/slash_test.go +++ b/tests/integration/staking/keeper/slash_test.go @@ -68,7 +68,7 @@ func TestSlashUnbondingDelegation(t *testing.T) { assert.NilError(t, f.stakingKeeper.SetUnbondingDelegation(f.sdkCtx, ubd)) - // unbonding started prior to the infraction height, stakw didn't contribute + // unbonding started prior to the infraction height, stake didn't contribute slashAmount, err := f.stakingKeeper.SlashUnbondingDelegation(f.sdkCtx, ubd, 1, fraction) assert.NilError(t, err) assert.Assert(t, slashAmount.Equal(math.NewInt(0))) diff --git a/x/auth/vesting/client/cli/tx.go b/x/auth/vesting/client/cli/tx.go index fe6a0c341f..23b48f0b03 100644 --- a/x/auth/vesting/client/cli/tx.go +++ b/x/auth/vesting/client/cli/tx.go @@ -98,7 +98,7 @@ func NewMsgCreatePermanentLockedAccountCmd(ac address.Codec) *cobra.Command { Use: "create-permanent-locked-account [to_address] [amount]", Short: "Create a new permanently locked account funded with an allocation of tokens.", Long: `Create a new account funded with an allocation of permanently locked tokens. These -tokens may be used for staking but are non-transferable. Staking rewards will acrue as liquid and transferable +tokens may be used for staking but are non-transferable. Staking rewards will accrue as liquid and transferable tokens.`, Args: cobra.ExactArgs(2), RunE: func(cmd *cobra.Command, args []string) error {