Skip to content

Commit

Permalink
comments cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
timwu20 committed Oct 17, 2024
1 parent 3b7fb2f commit a300713
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/trie/triedb/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ type CachedNodeHandleTypes[H hash.Hash] interface {

// Cached version of [codec.MerkleValue].
type CachedNodeHandle interface {
/// Returns [CachedNodeHandle] as a [ChildReference].
// Returns [CachedNodeHandle] as a [ChildReference].
ChildReference() ChildReference
}

Expand Down Expand Up @@ -321,7 +321,7 @@ func (ecv ExistingCachedValue[H]) hash() *H { return &ecv.Hash } //nolint:un
//
// The interface consists of two cache levels, first the trie nodes cache and then the value cache.
// The trie nodes cache, as the name indicates, is for caching trie nodes as [CachedNode]. These
// trie nodes are referenced by their hash. The value cache is caching [CachedValue]'s and these
// trie nodes are referenced by their hash. The value cache is caching [CachedValue]s and these
// are referenced by the key to look them up in the trie. As multiple different tries can have
// different values under the same key, it is up to the cache implementation to ensure that the
// correct value is returned. As each trie has a different root, this root can be used to
Expand Down
2 changes: 1 addition & 1 deletion pkg/trie/triedb/nibbles/nibbleslice.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (n *NibbleSlice) Pop() *uint8 {
return &popped
}

// / Append another [NibbleSlice]. Can be slow (alignment of second slice).
// Append another [NibbleSlice]. Can be slow (alignment of second slice).
func (n *NibbleSlice) Append(v NibbleSlice) {
if v.len == 0 {
return
Expand Down

0 comments on commit a300713

Please sign in to comment.