Skip to content
This repository was archived by the owner on Jul 5, 2024. It is now read-only.

Commit ef14352

Browse files
authored
chore : typo fix (#1705)
minor typo fix
1 parent fe9beeb commit ef14352

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ clippy: ## Run clippy checks over all workspace members
1717
doc: ## Generate and tests docs including private items
1818
@cargo doc --no-deps --all --document-private-items
1919

20-
fmt: ## Check whether the code is formated correctly
20+
fmt: ## Check whether the code is formatted correctly
2121
@cargo check --all-features
2222
@cargo fmt --all -- --check
2323

mpt-witness-generator/trie/proof.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ func unset(parent Node, child Node, key []byte, pos int, removeLeft bool) error
463463
if removeLeft {
464464
if bytes.Compare(cld.Key, key[pos:]) < 0 {
465465
// The key of fork shortnode is less than the path
466-
// (it belongs to the range), unset the entrie
466+
// (it belongs to the range), unset the entry
467467
// branch. The parent must be a fullnode.
468468
fn := parent.(*FullNode)
469469
fn.Children[key[pos-1]] = nil
@@ -475,7 +475,7 @@ func unset(parent Node, child Node, key []byte, pos int, removeLeft bool) error
475475
} else {
476476
if bytes.Compare(cld.Key, key[pos:]) > 0 {
477477
// The key of fork shortnode is greater than the
478-
// path(it belongs to the range), unset the entrie
478+
// path (it belongs to the range), unset the entry
479479
// branch. The parent must be a fullnode.
480480
fn := parent.(*FullNode)
481481
fn.Children[key[pos-1]] = nil

mpt-witness-generator/trie/stacktrie.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ func (st *StackTrie) Hash() (h common.Hash) {
525525
return common.BytesToHash(st.val)
526526
}
527527

528-
// Commit will firstly hash the entrie trie if it's still not hashed
528+
// Commit will firstly hash the entry trie if it's still not hashed
529529
// and then commit all nodes to the associated database. Actually most
530530
// of the trie nodes MAY have been committed already. The main purpose
531531
// here is to commit the root node.

0 commit comments

Comments
 (0)