From 64568826f1c0b197ab52cb80c21eea97a161c6b5 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Fri, 31 May 2013 14:02:47 -0500 Subject: [PATCH] Correct spelling of nonexistent. --- db.go | 4 ++-- sqlite3/sqliteblock_test.go | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/db.go b/db.go index 406a4846..d7e5b4d8 100644 --- a/db.go +++ b/db.go @@ -14,8 +14,8 @@ var ( PrevShaMissing = errors.New("Previous sha missing from database") TxShaMissing = errors.New("Requested Tx does not exist") DuplicateSha = errors.New("Duplicate insert attempted") - DbDoesNotExist = errors.New("Non-existant database") - DbUnknownType = errors.New("Non-existant database type") + DbDoesNotExist = errors.New("Non-existent database") + DbUnknownType = errors.New("Non-existent database type") ) // AllShas is a special value that can be used as the final sha when requesting diff --git a/sqlite3/sqliteblock_test.go b/sqlite3/sqliteblock_test.go index 2b2d17b7..c129c15d 100644 --- a/sqlite3/sqliteblock_test.go +++ b/sqlite3/sqliteblock_test.go @@ -167,9 +167,9 @@ func testFetch(t *testing.T, db btcdb.Db, shas []btcwire.ShaHash, {midBlockID, endBlockID, shas[midBlockID-1 : endBlockID-1], "fetch second half"}, - // Nonexistant off the end. + // Nonexistent off the end. {endBlockID, endBlockID * 2, []btcwire.ShaHash{}, - "fetch nonexistant"}, + "fetch nonexistent"}, } 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) { - t.Errorf("non existant sha exists (%s)!", sync) + t.Errorf("nonexistent sha exists (%s)!", sync) } _, _, _, err := sqlite3.FetchSha(db, &badSha) if err == nil {