docs: fix misspelled issues (#24989)

Co-authored-by: Alex | Interchain Labs <alex@interchainlabs.io>
This commit is contained in:
David Klank 2025-07-29 23:06:24 +03:00 committed by GitHub
parent 255829400d
commit 892f4d868c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 11 additions and 11 deletions

View File

@ -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

View File

@ -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 {

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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

View File

@ -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,

View File

@ -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)))

View File

@ -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 {