@@ -52,7 +52,7 @@ func (t *ImmutableTree) String() string {
52
52
return "Tree{" + strings .Join (leaves , ", " ) + "}"
53
53
}
54
54
55
- // RenderShape provides a nested tree shape, ident is prepended in each level
55
+ // RenderShape provides a nested tree shape, indent is prepended in each level
56
56
// Returns an array of strings, one per line, to join with "\n" or display otherwise
57
57
func (t * ImmutableTree ) RenderShape (indent string , encoder NodeEncoder ) ([]string , error ) {
58
58
if encoder == nil {
@@ -63,7 +63,7 @@ func (t *ImmutableTree) RenderShape(indent string, encoder NodeEncoder) ([]strin
63
63
64
64
// NodeEncoder will take an id (hash, or key for leaf nodes), the depth of the node,
65
65
// and whether or not this is a leaf node.
66
- // It returns the string we wish to print, for iaviwer
66
+ // It returns the string we wish to print, for iavlviewer
67
67
type NodeEncoder func (id []byte , depth int , isLeaf bool ) string
68
68
69
69
// defaultNodeEncoder can encode any node unless the client overrides it
@@ -209,7 +209,7 @@ func (t *ImmutableTree) Get(key []byte) ([]byte, error) {
209
209
210
210
// otherwise skipFastStorageUpgrade is true or
211
211
// the cached node was updated later than the current tree. In this case,
212
- // we need to use the regular stategy for reading from the current tree to avoid staleness.
212
+ // we need to use the regular strategy for reading from the current tree to avoid staleness.
213
213
_ , result , err := t .root .get (t , key )
214
214
return result , err
215
215
}
@@ -326,7 +326,7 @@ func (t *ImmutableTree) nodeSize() int {
326
326
return int (t .root .size * 2 - 1 )
327
327
}
328
328
329
- // TraverseStateChanges iterate the range of versions, compare each version to it's predecessor to extract the state changes of it.
329
+ // TraverseStateChanges iterate the range of versions, compare each version to its predecessor to extract the state changes of it.
330
330
// endVersion is exclusive.
331
331
func (t * ImmutableTree ) TraverseStateChanges (startVersion , endVersion int64 , fn func (version int64 , changeSet * ChangeSet ) error ) error {
332
332
return t .ndb .traverseStateChanges (startVersion , endVersion , fn )
0 commit comments