From ca0c177bcabb7d8e69f52a63d5fcd7a9ccb97aca Mon Sep 17 00:00:00 2001 From: bigbear <155267841+aso20455@users.noreply.github.com> Date: Fri, 25 Jul 2025 21:02:07 +0300 Subject: [PATCH] docs: fix spelling issues (#25009) --- docs/docs/learn/advanced/02-context.md | 4 ++-- log/CHANGELOG.md | 2 +- server/README.md | 2 +- server/doc.go | 2 +- server/export.go | 2 +- server/types/app.go | 2 +- server/util_test.go | 2 +- simapp/params/amino.go | 2 +- simapp/params/proto.go | 2 +- simapp/simd/cmd/testnet.go | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/docs/learn/advanced/02-context.md b/docs/docs/learn/advanced/02-context.md index 312a4fd9af..57f9b5dd64 100644 --- a/docs/docs/learn/advanced/02-context.md +++ b/docs/docs/learn/advanced/02-context.md @@ -39,7 +39,7 @@ https://github.com/cosmos/cosmos-sdk/blob/v0.53.0-rc.2/types/context.go#L40-L67 `Events` by defining various `Types` and `Attributes` or use the common definitions found in `types/`. Clients can subscribe or query for these `Events`. These `Events` are collected throughout `FinalizeBlock` and are returned to CometBFT for indexing. * **Priority:** The transaction priority, only relevant in `CheckTx`. * **KV `GasConfig`:** Enables applications to set a custom `GasConfig` for the `KVStore`. -* **Transient KV `GasConfig`:** Enables applications to set a custom `GasConfig` for the transiant `KVStore`. +* **Transient KV `GasConfig`:** Enables applications to set a custom `GasConfig` for the transient `KVStore`. * **StreamingManager:** The streamingManager field provides access to the streaming manager, which allows modules to subscribe to state changes emitted by the blockchain. The streaming manager is used by the state listening API, which is described in [ADR 038](https://docs.cosmos.network/main/architecture/adr-038-state-listening). * **CometInfo:** A lightweight field that contains information about the current block, such as the block height, time, and hash. This information can be used for validating evidence, providing historical data, and enhancing the user experience. For further details see [here](https://github.com/cosmos/cosmos-sdk/blob/main/core/comet/service.go#L14). * **HeaderInfo:** The `headerInfo` field contains information about the current block header, such as the chain ID, gas limit, and timestamp. For further details see [here](https://github.com/cosmos/cosmos-sdk/blob/main/core/header/service.go#L14). @@ -71,7 +71,7 @@ goes wrong. The pattern of usage for a Context is as follows: 1. A process receives a Context `ctx` from its parent process, which provides information needed to perform the process. -2. The `ctx.ms` is a **branched store**, i.e. a branch of the [multistore](./04-store.md#multistore) is made so that the process can make changes to the state as it executes, without changing the original`ctx.ms`. This is useful to protect the underlying multistore in case the changes need to be reverted at some point in the execution. +2. The `ctx.ms` is a **branched store**, i.e. a branch of the [multistore](./04-store.md#multistore) is made so that the process can make changes to the state as it executes, without changing the original `ctx.ms`. This is useful to protect the underlying multistore in case the changes need to be reverted at some point in the execution. 3. The process may read and write from `ctx` as it is executing. It may call a subprocess and pass `ctx` to it as needed. 4. When a subprocess returns, it checks if the result is a success or failure. If a failure, nothing diff --git a/log/CHANGELOG.md b/log/CHANGELOG.md index a735925104..3a8e989b9d 100644 --- a/log/CHANGELOG.md +++ b/log/CHANGELOG.md @@ -75,7 +75,7 @@ Each entry must include the Github issue reference in the following format: ## [v0.1.0](https://github.com/cosmos/cosmos-sdk/releases/tag/log/v0.1.0) - 2023-03-13 -* Introducing a standalone SDK logger package (`comossdk.io/log`). +* Introducing a standalone SDK logger package (`cosmossdk.io/log`). It replaces CometBFT logger and provides a common interface for all SDK components. The default logger (`NewLogger`) is using [zerolog](https://github.com/rs/zerolog), but it can be easily replaced with any implementation that implements the `log.Logger` interface. diff --git a/server/README.md b/server/README.md index a7c0e275fe..1c7ee97887 100644 --- a/server/README.md +++ b/server/README.md @@ -85,6 +85,6 @@ func newApp(logger log.Logger, db dbm.DB, traceStore io.Writer, appOpts serverty ``` Note, some of the options provided are exposed via CLI flags in the start command -and some are also allowed to be set in the application's `app.toml`. It is recommend +and some are also allowed to be set in the application's `app.toml`. It is recommended to use the `cast` package for type safety guarantees and due to the limitations of CLI flag types. diff --git a/server/doc.go b/server/doc.go index 241c218259..ceee3ef5d5 100644 --- a/server/doc.go +++ b/server/doc.go @@ -15,7 +15,7 @@ The global configuration instance exposed by the `viper` package is not used by Cosmos SDK in this function. A new instance of `viper.Viper` is created and the following is performed. The environmental variable prefix is set to the current program name. Environmental variables consider the underscore -to be equivalent to the `.` or `-` character. This means that an configuration +to be equivalent to the `.` or `-` character. This means that a configuration value called `rpc.laddr` would be read from an environmental variable called `MYTOOL_RPC_LADDR` if the current program name is `mytool`. diff --git a/server/export.go b/server/export.go index 9b43da0c85..aff386ce4d 100644 --- a/server/export.go +++ b/server/export.go @@ -117,7 +117,7 @@ func ExportCmd(appExporter types.AppExporter, defaultNodeHome string) *cobra.Com cmd.Flags().String(flags.FlagHome, defaultNodeHome, "The application home directory") cmd.Flags().Int64(FlagHeight, -1, "Export state from a particular height (-1 means latest height)") - cmd.Flags().Bool(FlagForZeroHeight, false, "Export state to start at height zero (perform preproccessing)") + cmd.Flags().Bool(FlagForZeroHeight, false, "Export state to start at height zero (perform preprocessing)") cmd.Flags().StringSlice(FlagJailAllowedAddrs, []string{}, "Comma-separated list of operator addresses of jailed validators to unjail") cmd.Flags().StringSlice(FlagModulesToExport, []string{}, "Comma-separated list of modules to export. If empty, will export all modules") cmd.Flags().String(flags.FlagOutputDocument, "", "Exported state is written to the given file instead of STDOUT") diff --git a/server/types/app.go b/server/types/app.go index c00eacea01..6026f77a23 100644 --- a/server/types/app.go +++ b/server/types/app.go @@ -25,7 +25,7 @@ type ( // via config file or through CLI arguments/flags. The underlying implementation // is defined by the server package and is typically implemented via a Viper // literal defined on the server Context. Note, casting Get calls may not yield - // the expected types and could result in type assertion errors. It is recommend + // the expected types and could result in type assertion errors. It is recommended // to either use the cast package or perform manual conversion for safety. AppOptions interface { Get(string) any diff --git a/server/util_test.go b/server/util_test.go index 11bcb3814b..b778e9eb83 100644 --- a/server/util_test.go +++ b/server/util_test.go @@ -91,7 +91,7 @@ func TestInterceptConfigsPreRunHandlerCreatesConfigFilesWhenMissing(t *testing.T } if !s.Mode().IsRegular() { - t.Fatal("appp.toml not created as regular file") + t.Fatal("app.toml not created as regular file") } if s.Size() == 0 { diff --git a/simapp/params/amino.go b/simapp/params/amino.go index d603987dd5..c7d8ba0045 100644 --- a/simapp/params/amino.go +++ b/simapp/params/amino.go @@ -11,7 +11,7 @@ import ( // MakeTestEncodingConfig creates an EncodingConfig for an amino based test configuration. // This function should be used only internally (in the SDK). -// App user should'nt create new codecs - use the app.AppCodec instead. +// App user shouldn't create new codecs - use the app.AppCodec instead. // [DEPRECATED] func MakeTestEncodingConfig() EncodingConfig { cdc := codec.NewLegacyAmino() diff --git a/simapp/params/proto.go b/simapp/params/proto.go index 2a38fff040..25f788ab18 100644 --- a/simapp/params/proto.go +++ b/simapp/params/proto.go @@ -11,7 +11,7 @@ import ( // MakeTestEncodingConfig creates an EncodingConfig for a non-amino based test configuration. // This function should be used only internally (in the SDK). -// App user should'nt create new codecs - use the app.AppCodec instead. +// App user shouldn't create new codecs - use the app.AppCodec instead. // [DEPRECATED] func MakeTestEncodingConfig() EncodingConfig { cdc := codec.NewLegacyAmino() diff --git a/simapp/simd/cmd/testnet.go b/simapp/simd/cmd/testnet.go index 550696e59b..e9bf677d2f 100644 --- a/simapp/simd/cmd/testnet.go +++ b/simapp/simd/cmd/testnet.go @@ -583,7 +583,7 @@ func startTestnet(cmd *cobra.Command, args startArgs) error { baseDir := fmt.Sprintf("%s/%s", args.outputDir, networkConfig.ChainID) if _, err := os.Stat(baseDir); !os.IsNotExist(err) { return fmt.Errorf( - "testnests directory already exists for chain-id '%s': %s, please remove or select a new --chain-id", + "testnets directory already exists for chain-id '%s': %s, please remove or select a new --chain-id", networkConfig.ChainID, baseDir) }