Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix spelling #3267

Merged
merged 4 commits into from
Aug 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion chains/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ func (m *manager) createChain(chainParams ChainParameters) {
)
}

// Notify those that registered to be notified when a new chain is created
// Notify those who registered to be notified when a new chain is created
m.notifyRegistrants(chain.Name, chain.Context, chain.VM)

// Allows messages to be routed to the new chain. If the handler hasn't been
Expand Down
2 changes: 1 addition & 1 deletion codec/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
const (
VersionSize = wrappers.ShortLen

// default max size, in bytes, of something being marshalled by Marshal()
// default max size, in bytes, of something being marshaled by Marshal()
defaultMaxSize = 256 * units.KiB

// initial capacity of byte slice that values are marshaled into.
Expand Down
2 changes: 1 addition & 1 deletion codec/reflectcodec/type_codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ func (c *genericCodec) unmarshal(
if err != nil {
return fmt.Errorf("couldn't unmarshal struct: %w", err)
}
// Go through the fields and umarshal into them
// Go through the fields and unmarshal into them
for _, fieldIndex := range serializedFieldIndices {
if err := c.unmarshal(p, value.Field(fieldIndex), typeStack); err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion x/merkledb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

A _Merkle radix trie_ is a data structure that is both a [Merkle tree](https://en.wikipedia.org/wiki/Merkle_tree) and a [radix trie](https://en.wikipedia.org/wiki/Radix_tree). MerkleDB is an implementation of a persisted key-value store (sometimes just called "a store") using a Merkle radix trie. We sometimes use "Merkle radix trie" and "MerkleDB instance" interchangeably below, but the two are not the same. MerkleDB maintains data in a Merkle radix trie, but not all Merkle radix tries implement a key-value store.

Like all tries, a MerkleDB instance is composed of nodes. Conceputally, a node has:
Like all tries, a MerkleDB instance is composed of nodes. Conceptually, a node has:
* A unique _key_ which identifies its position in the trie. A node's key is a prefix of its childrens' keys.
* A unique _ID_, which is the hash of the node.
* A _children_ array, where each element is the ID of the child at that index. A child at a lower index is to the "left" of children at higher indices.
Expand Down
Loading