From 061889d4ea13b23d777efbe005210ead8667e869 Mon Sep 17 00:00:00 2001 From: "S. Matthew English" Date: Mon, 12 Jun 2017 14:45:17 +0200 Subject: rlp, trie, contracts, compression, consensus: improve comments (#14580) --- trie/trie.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'trie/trie.go') 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 } -- cgit v1.2.3