docs: fix misspelled issues (#24989)

Co-authored-by: Alex | Interchain Labs <alex@interchainlabs.io>
This commit is contained in:
David Klank
2025-07-29 20:06:24 +00:00
committed by GitHub
co-authored by Alex | Interchain Labs
parent 255829400d
commit 892f4d868c
9 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -69,7 +69,7 @@ type (
// MarshalInterface is a helper method which will wrap `i` into `Any` for correct
// binary interface (de)serialization.
MarshalInterface(i proto.Message) ([]byte, error)
// UnmarshalInterface is a helper method which will parse binary enoded data
// UnmarshalInterface is a helper method which will parse binary encoded data
// into `Any` and unpack any into the `ptr`. It fails if the target interface type
// is not registered in codec, or is not compatible with the serialized data
UnmarshalInterface(bz []byte, ptr any) error
@@ -85,7 +85,7 @@ type (
// MarshalInterfaceJSON is a helper method which will wrap `i` into `Any` for correct
// JSON interface (de)serialization.
MarshalInterfaceJSON(i proto.Message) ([]byte, error)
// UnmarshalInterfaceJSON is a helper method which will parse JSON enoded data
// UnmarshalInterfaceJSON is a helper method which will parse JSON encoded data
// into `Any` and unpack any into the `ptr`. It fails if the target interface type
// is not registered in codec, or is not compatible with the serialized data
UnmarshalInterfaceJSON(bz []byte, ptr any) error
+2 -2
View File
@@ -6,10 +6,10 @@ import (
)
// MarshalYAML marshals toPrint using JSONCodec to leverage specialized MarshalJSON methods
// (usually related to serialize data with protobuf or amin depending on a configuration).
// (usually related to serialize data with protobuf or amino depending on a configuration).
// This involves additional roundtrip through JSON.
func MarshalYAML(cdc JSONCodec, toPrint proto.Message) ([]byte, error) {
// We are OK with the performance hit of the additional JSON roundtip. MarshalYAML is not
// We are OK with the performance hit of the additional JSON roundtrip. MarshalYAML is not
// used in any critical parts of the system.
bz, err := cdc.MarshalJSON(toPrint)
if err != nil {