aboutsummaryrefslogtreecommitdiffstats
path: root/trie/trie.go
diff options
context:
space:
mode:
authorS. Matthew English <s-matthew-english@users.noreply.github.com>2017-06-12 20:45:17 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-06-12 20:45:17 +0800
commit061889d4ea13b23d777efbe005210ead8667e869 (patch)
tree35a391e5ac09e683796c3c698f36542f06803d03 /trie/trie.go
parente3dfd5582026a8744a80d3de407601526b720abb (diff)
downloadgo-tangerine-061889d4ea13b23d777efbe005210ead8667e869.tar
go-tangerine-061889d4ea13b23d777efbe005210ead8667e869.tar.gz
go-tangerine-061889d4ea13b23d777efbe005210ead8667e869.tar.bz2
go-tangerine-061889d4ea13b23d777efbe005210ead8667e869.tar.lz
go-tangerine-061889d4ea13b23d777efbe005210ead8667e869.tar.xz
go-tangerine-061889d4ea13b23d777efbe005210ead8667e869.tar.zst
go-tangerine-061889d4ea13b23d777efbe005210ead8667e869.zip
rlp, trie, contracts, compression, consensus: improve comments (#14580)
Diffstat (limited to 'trie/trie.go')
-rw-r--r--trie/trie.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/trie/trie.go b/trie/trie.go
index 5759f97e3..cbe496574 100644
--- a/trie/trie.go
+++ b/trie/trie.go
@@ -40,7 +40,7 @@ var (
)
// CacheMisses retrieves a global counter measuring the number of cache misses
-// the trie did since process startup. This isn't useful for anything apart from
+// the trie had since process startup. This isn't useful for anything apart from
// trie debugging purposes.
func CacheMisses() int64 {
return cacheMissCounter.Count()
@@ -87,14 +87,14 @@ type Trie struct {
originalRoot common.Hash
// Cache generation values.
- // cachegen increase by one with each commit operation.
+ // cachegen increases by one with each commit operation.
// new nodes are tagged with the current generation and unloaded
// when their generation is older than than cachegen-cachelimit.
cachegen, cachelimit uint16
}
// SetCacheLimit sets the number of 'cache generations' to keep.
-// A cache generations is created by a call to Commit.
+// A cache generation is created by a call to Commit.
func (t *Trie) SetCacheLimit(l uint16) {
t.cachelimit = l
}