Skip to content

Commit ebdaf82

Browse files
authored
docs: fix some typos and mismatches in comments (#25688)
1 parent f145e87 commit ebdaf82

File tree

20 files changed

+21
-21
lines changed

20 files changed

+21
-21
lines changed

client/debug/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ func getPubKeyFromRawString(pkstr, keytype string) (cryptotypes.PubKey, error) {
178178
func PubkeyRawCmd() *cobra.Command {
179179
cmd := &cobra.Command{
180180
Use: "pubkey-raw [pubkey] -t [{ed25519, secp256k1}]",
181-
Short: "Decode a ED25519 or secp256k1 pubkey from hex, base64, or bech32",
181+
Short: "Decode an ED25519 or secp256k1 pubkey from hex, base64, or bech32",
182182
Long: "Decode a pubkey from hex, base64, or bech32.",
183183
Example: fmt.Sprintf(`
184184
%s debug pubkey-raw 8FCA9D6D1F80947FD5E9A05309259746F5F72541121766D5F921339DD061174A

client/flags/flags.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ func AddTxFlagsToCmd(cmd *cobra.Command) {
138138
f.BoolP(FlagSkipConfirmation, "y", false, "Skip tx broadcasting prompt confirmation")
139139
f.String(FlagSignMode, "", "Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature")
140140
f.Uint64(FlagTimeoutHeight, 0, "DEPRECATED: Please use --timeout-duration instead. Set a block timeout height to prevent the tx from being committed past a certain height")
141-
f.Duration(TimeoutDuration, 0, "TimeoutDuration is the duration the transaction will be considered valid in the mempool. The transaction's unordered nonce will be set to the time of transaction creation + the duration value passed. If the transaction is still in the mempool, and the block time has passed the time of submission + TimeoutTimestamp, the transaction will be rejected.")
141+
f.Duration(TimeoutDuration, 0, "TimeoutDuration is the duration the transaction will be considered valid in the mempool. The transaction's unordered nonce will be set to the time of transaction creation + the duration value passed. If the transaction is still in the mempool, and the block time has passed the time of submission + TimeoutDuration, the transaction will be rejected.")
142142
f.Bool(FlagUnordered, false, "Enable unordered transaction delivery; must be used in conjunction with --timeout-duration")
143143
f.String(FlagFeePayer, "", "Fee payer pays fees for the transaction instead of deducting from the signer")
144144
f.String(FlagFeeGranter, "", "Fee granter grants fees for the transaction")

client/grpc/cmtservice/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func (s queryServer) GetBlockByHeight(ctx context.Context, req *GetBlockByHeight
8787
}
8888

8989
if req.Height > blockHeight {
90-
return nil, status.Error(codes.InvalidArgument, "requested block height is bigger then the chain length")
90+
return nil, status.Error(codes.InvalidArgument, "requested block height is bigger than the chain length")
9191
}
9292

9393
protoBlockID, protoBlock, err := GetProtoBlock(ctx, s.clientCtx, &req.Height)

client/keys/output.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
sdk "github.com/cosmos/cosmos-sdk/types"
99
)
1010

11-
// Use protobuf interface marshaler rather then generic JSON
11+
// Use protobuf interface marshaler rather than generic JSON
1212

1313
// KeyOutput defines a structure wrapping around an Info object used for output
1414
// functionality.

client/snapshot/dump.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"github.com/cosmos/cosmos-sdk/server"
1515
)
1616

17-
// DumpArchiveCmd returns a command to dump the snapshot as portable archive format
17+
// DumpArchiveCmd returns a command to dump the snapshot as a portable archive format
1818
func DumpArchiveCmd() *cobra.Command {
1919
cmd := &cobra.Command{
2020
Use: "dump <height> <format>",

client/snapshot/load.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020

2121
const SnapshotFileName = "_snapshot"
2222

23-
// LoadArchiveCmd load a portable archive format snapshot into snapshot store
23+
// LoadArchiveCmd loads a portable archive format snapshot into snapshot store
2424
func LoadArchiveCmd() *cobra.Command {
2525
return &cobra.Command{
2626
Use: "load <archive-file>",

codec/any_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ func TestMarshalProtoInterfacePubKey(t *testing.T) {
126126
require.True(pk3.Equals(pk))
127127

128128
// ** Check unmarshal using JSONCodec **
129-
// Unpacking won't work straightforward s Any type
129+
// Unpacking won't work straightforward as Any type
130130
// Any can't implement UnpackInterfacesMessage interface. So Any is not
131131
// automatically unpacked and we won't get a value.
132132
var pkAny codectypes.Any

core/coins/format_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"cosmossdk.io/core/coins"
1313
)
1414

15-
// coinsJSONTest is the type of test cases in the coin.json file.
15+
// coinJSONTest is the type of test cases in the coin.json file.
1616
type coinJSONTest struct {
1717
Proto *basev1beta1.Coin
1818
Metadata *bankv1beta1.Metadata

crypto/keyring/keyring.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ func newRealPrompt(dir string, buf io.Reader) func(string) (string, error) {
775775
}
776776

777777
if pass != reEnteredPass {
778-
fmt.Fprintln(os.Stderr, "passphrase do not match")
778+
fmt.Fprintln(os.Stderr, "passphrase does not match")
779779
continue
780780
}
781781

crypto/keyring/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
)
77

88
// Language is a language to create the BIP 39 mnemonic in.
9-
// Currently, only english is supported though.
9+
// Currently, only English is supported though.
1010
// Find a list of all supported languages in the BIP 39 spec (word lists).
1111
type Language int
1212

0 commit comments

Comments
 (0)