docs: fix multiple typos (#25019)
Co-authored-by: Alex | Interchain Labs <alex@interchainlabs.io>
This commit is contained in:
co-authored by
Alex | Interchain Labs
parent
f73ea2b5e9
commit
4c6bdd257a
@@ -231,7 +231,7 @@ func TestSubspace(t *testing.T) {
|
||||
require.Equal(t, kv.param, indirect(kv.ptr), "stored param not equal, tc #%d", i)
|
||||
|
||||
require.Panics(t, func() { space.Get(ctx, []byte("invalid"), kv.ptr) }, "invalid space.Get not panics when no value exists, tc #%d", i)
|
||||
require.Equal(t, kv.param, indirect(kv.ptr), "invalid space.Get unmarshalls when no value existt, tc #%d", i)
|
||||
require.Equal(t, kv.param, indirect(kv.ptr), "invalid space.Get unmarshalls when no value exist, tc #%d", i)
|
||||
|
||||
require.Panics(t, func() { space.Get(ctx, []byte(kv.key), nil) }, "invalid space.Get not panics when the pointer is nil, tc #%d", i)
|
||||
require.Panics(t, func() { space.Get(ctx, []byte(kv.key), new(invalid)) }, "invalid space.Get not panics when the pointer is different type, tc #%d", i)
|
||||
|
||||
@@ -163,7 +163,7 @@ func (s Subspace) Modified(ctx sdk.Context, key []byte) bool {
|
||||
return tstore.Has(key)
|
||||
}
|
||||
|
||||
// checkType verifies that the provided key and value are comptable and registered.
|
||||
// checkType verifies that the provided key and value are compatible and registered.
|
||||
func (s Subspace) checkType(key []byte, value any) {
|
||||
attr, ok := s.table.m[string(key)]
|
||||
if !ok {
|
||||
|
||||
Reference in New Issue
Block a user