From 14ccab80e78b2d90f75d7e731fb1d8f3e9926c23 Mon Sep 17 00:00:00 2001 From: Mawuli Adzoe Date: Wed, 30 Dec 2015 11:53:44 -0700 Subject: [PATCH] Review and fix typos in SigCache code. --- txscript/sigcache.go | 4 ++-- txscript/sigcache_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/txscript/sigcache.go b/txscript/sigcache.go index 16484fc6..a49a1b79 100644 --- a/txscript/sigcache.go +++ b/txscript/sigcache.go @@ -39,7 +39,7 @@ type SigCache struct { // NewSigCache creates and initializes a new instance of SigCache. Its sole // parameter 'maxEntries' represents the maximum number of entries allowed to -// exist in the SigCache and any particular moment. Random entries are evicted +// exist in the SigCache at any particular moment. Random entries are evicted // to make room for new entries that would cause the number of entries in the // cache to exceed the max. func NewSigCache(maxEntries uint) *SigCache { @@ -63,7 +63,7 @@ func (s *SigCache) Exists(sigHash wire.ShaHash, sig *btcec.Signature, pubKey *bt // Add adds an entry for a signature over 'sigHash' under public key 'pubKey' // to the signature cache. In the event that the SigCache is 'full', an -// existing entry it randomly chosen to be evicted in order to make space for +// existing entry is randomly chosen to be evicted in order to make space for // the new entry. // // NOTE: This function is safe for concurrent access. Writers will block diff --git a/txscript/sigcache_test.go b/txscript/sigcache_test.go index 037265ed..afe23de5 100644 --- a/txscript/sigcache_test.go +++ b/txscript/sigcache_test.go @@ -88,7 +88,7 @@ func TestSigCacheAddEvictEntry(t *testing.T) { } // Add a new entry, this should cause eviction of a randomly chosen - // previously entry. + // previous entry. msgNew, sigNew, keyNew, err := genRandomSig() if err != nil { t.Fatalf("unable to generate random signature test data")