aboutsummaryrefslogtreecommitdiffstats
path: root/utils/merkletrie
diff options
context:
space:
mode:
authorZhizhen He <hezhizhen.yi@gmail.com>2023-09-08 09:30:43 +0800
committerZhizhen He <hezhizhen.yi@gmail.com>2023-09-08 09:30:43 +0800
commit32975ee2c72d60121c37aa969d70b3b9953cd76a (patch)
tree6bda6979ebd8e0ea3e0bca518a8b8ab852b100b3 /utils/merkletrie
parent51e9c9f1d9261568573a8b4bd50e8694e14839f7 (diff)
downloadgo-git-32975ee2c72d60121c37aa969d70b3b9953cd76a.tar.gz
*: fix some typos
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
Diffstat (limited to 'utils/merkletrie')
-rw-r--r--utils/merkletrie/difftree.go2
-rw-r--r--utils/merkletrie/internal/fsnoder/file.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/utils/merkletrie/difftree.go b/utils/merkletrie/difftree.go
index 9f5145a..8090942 100644
--- a/utils/merkletrie/difftree.go
+++ b/utils/merkletrie/difftree.go
@@ -55,7 +55,7 @@ package merkletrie
// Here is a full list of all the cases that are similar and how to
// merge them together into more general cases. Each general case
// is labeled with an uppercase letter for further reference, and it
-// is followed by the pseudocode of the checks you have to perfrom
+// is followed by the pseudocode of the checks you have to perform
// on both noders to see if you are in such a case, the actions to
// perform (i.e. what changes to output) and how to advance the
// iterators of each tree to continue the comparison process.
diff --git a/utils/merkletrie/internal/fsnoder/file.go b/utils/merkletrie/internal/fsnoder/file.go
index 0bb908b..453efee 100644
--- a/utils/merkletrie/internal/fsnoder/file.go
+++ b/utils/merkletrie/internal/fsnoder/file.go
@@ -32,7 +32,7 @@ func newFile(name, contents string) (*file, error) {
func (f *file) Hash() []byte {
if f.hash == nil {
h := fnv.New64a()
- h.Write([]byte(f.contents)) // it nevers returns an error.
+ h.Write([]byte(f.contents)) // it never returns an error.
f.hash = h.Sum(nil)
}