docs: multiple typos of different importance (#25098)

This commit is contained in:
Jammy Arkens 2025-08-06 00:15:19 +08:00 committed by GitHub
parent a090bfc4d8
commit 8e370f8053
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 8 additions and 8 deletions

View File

@ -38,7 +38,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
### Features
* (x/evidence) [14724](https://github.com/cosmos/cosmos-sdk/pull/14724) The `x/evidence` module is extracted to have a separate go.mod file which allows it be a standalone module.
* (x/evidence) [#14724](https://github.com/cosmos/cosmos-sdk/pull/14724) The `x/evidence` module is extracted to have a separate go.mod file which allows it be a standalone module.
* (keeper) [#15420](https://github.com/cosmos/cosmos-sdk/pull/15420) Move `BeginBlocker` to the keeper folder & make HandleEquivocation private
### API Breaking Changes

View File

@ -271,7 +271,7 @@ The `evidence` command allows users to list all evidence or evidence by hash.
Usage:
```bash
simd query evidence evidence [flags]
simd query evidence [flags]
```
To query evidence by hash

View File

@ -51,7 +51,7 @@ func (rtr router) Sealed() bool {
return rtr.sealed
}
// AddRoute adds a governance handler for a given path. It returns the Router
// AddRoute adds an evidence handler for a given path. It returns the Router
// so AddRoute calls can be linked. It will panic if the router is sealed.
func (rtr *router) AddRoute(path string, h Handler) Router {
if rtr.sealed {

View File

@ -2,7 +2,7 @@ package feegrant
import "cosmossdk.io/errors"
// Codes for governance errors
// // Codes for feegrant errors
const (
DefaultCodespace = ModuleName
)

View File

@ -16,7 +16,7 @@ The `genutil` package contains a variety of genesis utility functionalities for
## Genesis
Genutil contains the data structure that defines an application genesis.
An application genesis consist of a consensus genesis (g.e. CometBFT genesis) and application related genesis data.
An application genesis consists of a consensus genesis (g.e. CometBFT genesis) and application related genesis data.
```go reference
https://github.com/cosmos/cosmos-sdk/blob/v0.50.0-rc.0/x/genutil/types/genesis.go#L24-L34

View File

@ -65,7 +65,7 @@ func Prompt[T any](data T, namePrefix string) (T, error) {
}
for i := range v.NumField() {
// if the field is a struct skip or not slice of string or int then skip
// if the field is a struct skip or not a slice of string or int then skip
switch v.Field(i).Kind() {
case reflect.Struct:
// TODO(@julienrbrt) in the future we can add a recursive call to Prompt

View File

@ -59,7 +59,7 @@ func TestPromptIntegerOverflow(t *testing.T) {
}
func TestPromptParseInteger(t *testing.T) {
// Intentionally sending a value out of the range of
// Intentionally sending a value out of the range of int.
values := []struct {
in string
want int

View File

@ -110,7 +110,7 @@ func setupGovKeeper(t *testing.T) (
err = govKeeper.Constitution.Set(ctx, "constitution")
require.NoError(t, err)
// Register all handlers for the MegServiceRouter.
// Register all handlers for the MsgServiceRouter.
msr.SetInterfaceRegistry(encCfg.InterfaceRegistry)
v1.RegisterMsgServer(msr, keeper.NewMsgServerImpl(govKeeper))
banktypes.RegisterMsgServer(msr, nil) // Nil is fine here as long as we never execute the proposal's Msgs.