From f8daf8b371e5d26be49c9be58af9d763716c744f Mon Sep 17 00:00:00 2001 From: minxinyi Date: Sat, 26 Jul 2025 03:08:25 +0800 Subject: [PATCH] chore: fix typos (#25013) Signed-off-by: minxinyi Co-authored-by: Alex | Interchain Labs --- crypto/hd/hdpath.go | 2 +- server/config/config.go | 2 +- server/config/toml.go | 2 +- simapp/app.go | 2 +- types/module/module.go | 2 +- x/gov/types/v1/deposit.go | 2 +- x/gov/types/v1/vote.go | 2 +- x/gov/types/v1beta1/deposit.go | 2 +- x/gov/types/v1beta1/proposal.go | 2 +- x/gov/types/v1beta1/vote.go | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/crypto/hd/hdpath.go b/crypto/hd/hdpath.go index c066de40f9..a1a896f981 100644 --- a/crypto/hd/hdpath.go +++ b/crypto/hd/hdpath.go @@ -262,7 +262,7 @@ func uint32ToBytes(i uint32) []byte { return b[:] } -// i64 returns the two halfs of the SHA512 HMAC of key and data. +// i64 returns the two halves of the SHA512 HMAC of key and data. func i64(key, data []byte) (il, ir [32]byte) { mac := hmac.New(sha512.New, key) // sha512 does not err diff --git a/server/config/config.go b/server/config/config.go index 631644c57d..f32491f887 100644 --- a/server/config/config.go +++ b/server/config/config.go @@ -69,7 +69,7 @@ type BaseConfig struct { // It has no bearing on application state pruning which is determined by the // "pruning-*" configurations. // - // Note: CometBFT block pruning is dependant on this parameter in conjunction + // Note: CometBFT block pruning is dependent on this parameter in conjunction // with the unbonding (safety threshold) period, state pruning and state sync // snapshot parameters to determine the correct minimum value of // ResponseCommit.RetainHeight. diff --git a/server/config/toml.go b/server/config/toml.go index ccd050a3aa..a6f322033f 100644 --- a/server/config/toml.go +++ b/server/config/toml.go @@ -58,7 +58,7 @@ halt-time = {{ .BaseConfig.HaltTime }} # It has no bearing on application state pruning which is determined by the # "pruning-*" configurations. # -# Note: CometBFT block pruning is dependant on this parameter in conjunction +# Note: CometBFT block pruning is dependent on this parameter in conjunction # with the unbonding (safety threshold) period, state pruning and state sync # snapshot parameters to determine the correct minimum value of # ResponseCommit.RetainHeight. diff --git a/simapp/app.go b/simapp/app.go index 3b3eb0e26a..33c9f10344 100644 --- a/simapp/app.go +++ b/simapp/app.go @@ -533,7 +533,7 @@ func NewSimApp( ) // BasicModuleManager defines the module BasicManager is in charge of setting up basic, - // non-dependant module elements, such as codec registration and genesis verification. + // non-dependent module elements, such as codec registration and genesis verification. // By default it is composed of all the module from the module manager. // Additionally, app module basics can be overwritten by passing them as argument. app.BasicModuleManager = module.NewBasicManagerFromManager( diff --git a/types/module/module.go b/types/module/module.go index a48c5ab4d8..4fd9adcfc7 100644 --- a/types/module/module.go +++ b/types/module/module.go @@ -52,7 +52,7 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) -// AppModuleBasic is the standard form for basic non-dependant elements of an application module. +// AppModuleBasic is the standard form for basic non-dependent elements of an application module. type AppModuleBasic interface { HasName RegisterLegacyAminoCodec(*codec.LegacyAmino) diff --git a/x/gov/types/v1/deposit.go b/x/gov/types/v1/deposit.go index 2ddbd8c221..d02590066c 100644 --- a/x/gov/types/v1/deposit.go +++ b/x/gov/types/v1/deposit.go @@ -14,7 +14,7 @@ func NewDeposit(proposalID uint64, depositor sdk.AccAddress, amount sdk.Coins) D // Deposits is a collection of Deposit objects type Deposits []*Deposit -// Equal returns true if two slices (order-dependant) of deposits are equal. +// Equal returns true if two slices (order-dependent) of deposits are equal. func (d Deposits) Equal(other Deposits) bool { if len(d) != len(other) { return false diff --git a/x/gov/types/v1/vote.go b/x/gov/types/v1/vote.go index 547fc43c93..1389cf332b 100644 --- a/x/gov/types/v1/vote.go +++ b/x/gov/types/v1/vote.go @@ -31,7 +31,7 @@ func (v Vote) Empty() bool { // Votes is a collection of Vote objects type Votes []*Vote -// Equal returns true if two slices (order-dependant) of votes are equal. +// Equal returns true if two slices (order-dependent) of votes are equal. func (v Votes) Equal(other Votes) bool { if len(v) != len(other) { return false diff --git a/x/gov/types/v1beta1/deposit.go b/x/gov/types/v1beta1/deposit.go index c9945b4209..3693b95e8e 100644 --- a/x/gov/types/v1beta1/deposit.go +++ b/x/gov/types/v1beta1/deposit.go @@ -19,7 +19,7 @@ func (d Deposit) Empty() bool { // Deposits is a collection of Deposit objects type Deposits []Deposit -// Equal returns true if two slices (order-dependant) of deposits are equal. +// Equal returns true if two slices (order-dependent) of deposits are equal. func (d Deposits) Equal(other Deposits) bool { if len(d) != len(other) { return false diff --git a/x/gov/types/v1beta1/proposal.go b/x/gov/types/v1beta1/proposal.go index ce2c7fa0b0..07c1dd0a98 100644 --- a/x/gov/types/v1beta1/proposal.go +++ b/x/gov/types/v1beta1/proposal.go @@ -90,7 +90,7 @@ type Proposals []Proposal var _ codectypes.UnpackInterfacesMessage = Proposals{} -// Equal returns true if two slices (order-dependant) of proposals are equal. +// Equal returns true if two slices (order-dependent) of proposals are equal. func (p Proposals) Equal(other Proposals) bool { if len(p) != len(other) { return false diff --git a/x/gov/types/v1beta1/vote.go b/x/gov/types/v1beta1/vote.go index 151c9da656..27146809e9 100644 --- a/x/gov/types/v1beta1/vote.go +++ b/x/gov/types/v1beta1/vote.go @@ -22,7 +22,7 @@ func (v Vote) Empty() bool { // Votes is an array of vote type Votes []Vote -// Equal returns true if two slices (order-dependant) of votes are equal. +// Equal returns true if two slices (order-dependent) of votes are equal. func (v Votes) Equal(other Votes) bool { if len(v) != len(other) { return false