Skip to content

Commit 24580ea

Browse files
Marcofanntac0turtleAlex | Skip
authoredJan 6, 2025··
docs: Correct grammar errors across multiple files (#23074)
Co-authored-by: Marko <[email protected]> Co-authored-by: Alex | Skip <[email protected]>
1 parent 93282e1 commit 24580ea

File tree

13 files changed

+13
-13
lines changed

13 files changed

+13
-13
lines changed
 

‎collections/iter.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ func newIterator[K, V any](ctx context.Context, start, end []byte, order Order,
204204
}, nil
205205
}
206206

207-
// Iterator defines a generic wrapper around an storetypes.Iterator.
207+
// Iterator defines a generic wrapper around a storetypes.Iterator.
208208
// This iterator provides automatic key and value encoding,
209209
// it assumes all the keys and values contained within the storetypes.Iterator
210210
// range are the same.

‎core/appmodule/v2/doc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
// Package appmodule defines what is needed for an module to be used in the Cosmos SDK (runtime/v2).
1+
// Package appmodule defines what is needed for a module to be used in the Cosmos SDK (runtime/v2).
22
// If you are looking at integrating dependency injection into your module please see depinject appconfig documentation.
33
package appmodulev2

‎depinject/group.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func (g *sliceGroupResolver) resolve(c *container, _ *moduleKey, caller Location
8383
}
8484

8585
func (g *groupResolver) resolve(_ *container, _ *moduleKey, _ Location) (reflect.Value, error) {
86-
return reflect.Value{}, fmt.Errorf("%v is an many-per-container type and cannot be used as an input value, instead use %v", g.typ, g.sliceType)
86+
return reflect.Value{}, fmt.Errorf("%v is a many-per-container type and cannot be used as an input value, instead use %v", g.typ, g.sliceType)
8787
}
8888

8989
func (g *groupResolver) addNode(n *simpleProvider, i int) error {

‎docs/spec/store/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ prefix-based iteration, including reverse iteration.
3131

3232
Typically, each module has its own dedicated `KVStore` instance, which it can
3333
get access to via the `sdk.Context` and the use of a pointer-based named key --
34-
`KVStoreKey`. The `KVStoreKey` provides pseudo-OCAP. How a exactly a `KVStoreKey`
34+
`KVStoreKey`. The `KVStoreKey` provides pseudo-OCAP. How an exactly a `KVStoreKey`
3535
maps to a `KVStore` will be illustrated below through the `CommitMultiStore`.
3636

3737
Note, a `KVStore` cannot directly commit state. Instead, a `KVStore` can be wrapped

‎errors/errors.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func (e Error) Codespace() string {
105105
// it will be labeled as internal error.
106106
//
107107
// If err is nil, this returns nil, avoiding the need for an if statement when
108-
// wrapping a error returned at the end of a function
108+
// wrapping an error returned at the end of a function
109109
func Wrap(err error, description string) error {
110110
if err == nil {
111111
return nil

‎orm/model/ormtable/hooks.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type ValidateHooks interface {
2929
// may be called but the enclosing transaction may still fail. The context
3030
// is provided in each method to help coordinate this.
3131
type WriteHooks interface {
32-
// OnInsert is called after an message is inserted into the store.
32+
// OnInsert is called after a message is inserted into the store.
3333
OnInsert(context.Context, proto.Message)
3434

3535
// OnUpdate is called after the entity is updated in the store.

‎runtime/events.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func NewEventManager(ctx context.Context) event.Manager {
3232
return &Events{sdkCtx.EventManager()}
3333
}
3434

35-
// Emit emits an typed event that is defined in the protobuf file.
35+
// Emit emits a typed event that is defined in the protobuf file.
3636
// In the future these events will be added to consensus.
3737
func (e Events) Emit(event gogoproto.Message) error {
3838
return e.EventManagerI.EmitTypedEvent(event)

‎server/v2/stf/core_event_service.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ type eventManager struct {
3636
executionContext *executionContext
3737
}
3838

39-
// Emit emits an typed event that is defined in the protobuf file.
39+
// Emit emits a typed event that is defined in the protobuf file.
4040
// In the future these events will be added to consensus.
4141
func (em *eventManager) Emit(tev transaction.Msg) error {
4242
ev := event.Event{

‎store/cachekv/store_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ func randInt(n int) int {
465465
return unsafe.NewRand().Int() % n
466466
}
467467

468-
// useful for replaying a error case if we find one
468+
// useful for replaying an error case if we find one
469469
func doOp(t *testing.T, st types.CacheKVStore, truth corestore.KVStoreWithBatch, op int, args ...int) {
470470
t.Helper()
471471
switch op {

‎store/snapshots/helpers_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func readChunks(chunks <-chan io.ReadCloser) [][]byte {
6262
return bodies
6363
}
6464

65-
// snapshotItems serialize a array of bytes as SnapshotItem_ExtensionPayload, and return the chunks.
65+
// snapshotItems serialize an array of bytes as SnapshotItem_ExtensionPayload, and return the chunks.
6666
func snapshotItems(items [][]byte, ext snapshottypes.ExtensionSnapshotter) [][]byte {
6767
// copy the same parameters from the code
6868
snapshotChunkSize := uint64(10e6)

‎store/v2/snapshots/helpers_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func readChunks(chunks <-chan io.ReadCloser) [][]byte {
5959
return bodies
6060
}
6161

62-
// snapshotItems serialize a array of bytes as SnapshotItem_ExtensionPayload, and return the chunks.
62+
// snapshotItems serialize an array of bytes as SnapshotItem_ExtensionPayload, and return the chunks.
6363
func snapshotItems(items [][]byte, ext snapshots.ExtensionSnapshotter) [][]byte {
6464
// copy the same parameters from the code
6565
snapshotChunkSize := uint64(10e6)

‎x/auth/types/account.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func NewModuleAddress(name string) sdk.AccAddress {
158158
return address.Module(name)
159159
}
160160

161-
// NewEmptyModuleAccount creates a empty ModuleAccount from a string
161+
// NewEmptyModuleAccount creates an empty ModuleAccount from a string
162162
func NewEmptyModuleAccount(name string, permissions ...string) *ModuleAccount {
163163
moduleAddress := NewModuleAddress(name)
164164
baseAcc := NewBaseAccountWithAddress(moduleAddress)

‎x/group/internal/orm/iterator.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func First(it Iterator, dest proto.Message) (RowID, error) {
103103

104104
// Paginate does pagination with a given Iterator based on the provided
105105
// PageRequest and unmarshals the results into the dest interface that must be
106-
// an non-nil pointer to a slice.
106+
// a non-nil pointer to a slice.
107107
//
108108
// If pageRequest is nil, then we will use these default values:
109109
// - Offset: 0

0 commit comments

Comments
 (0)
Please sign in to comment.