From 8fc81aa1911cdb03f72d1c4464ff20cf9fb4d973 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Wed, 11 Jan 2023 16:12:15 -0800 Subject: [PATCH] Small PR clean up --- iterator_test.go | 2 +- query.go | 4 ++-- session.go | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/iterator_test.go b/iterator_test.go index 22402c4..bc2e59c 100644 --- a/iterator_test.go +++ b/iterator_test.go @@ -101,7 +101,7 @@ func TestIteratorPaging(t *testing.T) { t.Error("Actual iterator nil, expected not nil") } else { var id, n int - // first row + // First row if !i.Scan(&id, &n) { t.Errorf("Actual more false, expected true") } diff --git a/query.go b/query.go index a43c22f..41265f8 100644 --- a/query.go +++ b/query.go @@ -38,7 +38,7 @@ type Query interface { // were selected, ErrNotFound is returned. Scan(dest ...interface{}) error - // Release releases a query back into a pool of queries. Released Queries + // Release releases a query back into a pool of queries. Released queries // cannot be reused. Release() } @@ -48,7 +48,7 @@ var ( _ Query = query{} ) -// QueryMock is a mock Query. See github.com/maraino/go-mock. +// QueryMock is a mock Query. type QueryMock struct { mock.Mock } diff --git a/session.go b/session.go index 8ec4ea1..37355d1 100644 --- a/session.go +++ b/session.go @@ -63,9 +63,9 @@ type Session interface { // are not reflected; you must open a new Session to observe them. Tables(keyspace string) ([]string, error) - // Query generates a new query object for interacting with the database. - // Further details of the query may be tweaked using the resulting query - // value before the query is executed. Query is automatically prepared if + // Query returns a Query to interact with the database. + // Further details of the query may be tweaked using the resulting Query + // before the query is executed. Query is automatically prepared if // it has not previously been executed. Query(statement string, arguments ...interface{}) Query }