Skip to content

Commit

Permalink
Small PR clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
willfaught committed Jan 12, 2023
1 parent 0ae8845 commit 8fc81aa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion iterator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down
4 changes: 2 additions & 2 deletions query.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand All @@ -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
}
Expand Down
6 changes: 3 additions & 3 deletions session.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 8fc81aa

Please sign in to comment.