Skip to content

Commit

Permalink
Fix spelling (#3267)
Browse files Browse the repository at this point in the history
Signed-off-by: Elias Rad <146735585+nnsW3@users.noreply.github.com>
  • Loading branch information
nnsW3 authored Aug 3, 2024
1 parent 307c88e commit 3287c58
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
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

0 comments on commit 3287c58

Please # to comment.