Correct spelling of nonexistent.

This commit is contained in:
Dave Collins 2013-05-31 14:02:47 -05:00
parent b686bbacf5
commit 64568826f1
2 changed files with 6 additions and 6 deletions

4
db.go
View file

@ -14,8 +14,8 @@ var (
PrevShaMissing = errors.New("Previous sha missing from database") PrevShaMissing = errors.New("Previous sha missing from database")
TxShaMissing = errors.New("Requested Tx does not exist") TxShaMissing = errors.New("Requested Tx does not exist")
DuplicateSha = errors.New("Duplicate insert attempted") DuplicateSha = errors.New("Duplicate insert attempted")
DbDoesNotExist = errors.New("Non-existant database") DbDoesNotExist = errors.New("Non-existent database")
DbUnknownType = errors.New("Non-existant database type") DbUnknownType = errors.New("Non-existent database type")
) )
// AllShas is a special value that can be used as the final sha when requesting // AllShas is a special value that can be used as the final sha when requesting

View file

@ -167,9 +167,9 @@ func testFetch(t *testing.T, db btcdb.Db, shas []btcwire.ShaHash,
{midBlockID, endBlockID, shas[midBlockID-1 : endBlockID-1], {midBlockID, endBlockID, shas[midBlockID-1 : endBlockID-1],
"fetch second half"}, "fetch second half"},
// Nonexistant off the end. // Nonexistent off the end.
{endBlockID, endBlockID * 2, []btcwire.ShaHash{}, {endBlockID, endBlockID * 2, []btcwire.ShaHash{},
"fetch nonexistant"}, "fetch nonexistent"},
} }
for _, test := range fetchIdxTests { for _, test := range fetchIdxTests {
@ -182,9 +182,9 @@ func testFetch(t *testing.T, db btcdb.Db, shas []btcwire.ShaHash,
} }
} }
// Try and fetch nonexistant sha. // Try and fetch nonexistent sha.
if db.ExistsSha(&badSha) { if db.ExistsSha(&badSha) {
t.Errorf("non existant sha exists (%s)!", sync) t.Errorf("nonexistent sha exists (%s)!", sync)
} }
_, _, _, err := sqlite3.FetchSha(db, &badSha) _, _, _, err := sqlite3.FetchSha(db, &badSha)
if err == nil { if err == nil {