Apply suggestions from code review

Some typo fixes from review

Co-Authored-By: zmanian <zaki@manian.org>
This commit is contained in:
Zaki Manian
2019-05-02 08:41:05 -07:00
committed by GitHub
parent 7635b1ed7e
commit ce9cde0888
3 changed files with 3 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ var _ Verifier = (*BaseVerifier)(nil)
// use the DynamicVerifier.
//
// NOTE: Verifier as a supported interface is deprecated, it may be reasonable
// to rename this to simply "verifier" and to remove that intereface
// to rename this to simply "verifier" and to remove that interface
// declaration. See also VerifyingProvider, which is not a Verifier, but is a
// Provider.
type BaseVerifier struct {

View File

@@ -44,7 +44,7 @@ func (e errEmptyTree) Error() string {
type errCommitExpired struct{}
func (e errCommitExpired) Error() string {
return "Commit is too old to be trusted"
return "commit is too old to be trusted"
}
//----------------------------------------

View File

@@ -104,7 +104,7 @@ func (cp concurrentProvider) joinConcurrency(chainID string, height int64) (uniq
uniq.err = err
// *After* setting the results, *then* call close(uniq.wait).
close(uniq.wait)
cp.mtx.Lock() // temporarily acquire lock to remove this iteem
cp.mtx.Lock() // temporarily acquire lock to remove this item
delete(cp.pendingVerifications, pkey)
cp.mtx.Unlock() // and release lock
}