txscript: Fix typo. (#700)

* Fix tiny typo. Bump copyright year.
* Clarify documentation.
This commit is contained in:
Mawueli Kofi Adzoe 2016-05-22 21:23:20 -07:00 committed by Dave Collins
parent e8e2167a1a
commit 7f07fb1093

View file

@ -1,4 +1,4 @@
// Copyright (c) 2015 The btcsuite developers
// Copyright (c) 2015-2016 The btcsuite developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
@ -84,7 +84,7 @@ func (s *SigCache) Add(sigHash wire.ShaHash, sig *btcec.Signature, pubKey *btcec
// If adding this new entry will put us over the max number of allowed
// entries, then evict an entry.
if uint(len(s.validSigs)+1) > s.maxEntries {
// Remove a random entry from the map relaying on the random
// Remove a random entry from the map. Relying on the random
// starting point of Go's map iteration. It's worth noting that
// the random iteration starting point is not 100% guaranteed
// by the spec, however most Go compilers support it.