Skip to content

Commit 3272370

Browse files
authored
Merge pull request #56 from Phil-CST-BCIT/55-inaccurate-code-comment
docs: improve method comments
2 parents 347c6b4 + 90e437a commit 3272370

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

querybuilder.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ func (q *QueryBuilder) ExecuteWithContext(ctx context.Context) ([]byte, int64, e
4444

4545
// ExecuteTo runs the PostgREST query, encoding the result to the supplied
4646
// interface. Note that the argument for the to parameter should always be a
47-
// reference to a slice.
47+
// reference to a slice unless the filter method Single is specified.
4848
func (q *QueryBuilder) ExecuteTo(to interface{}) (int64, error) {
4949
return executeTo(context.Background(), q.client, q.method, q.body, to, []string{q.tableName}, q.headers, q.params, q.err)
5050
}
5151

5252
// ExecuteToWithContext runs the PostgREST query with the given context,
5353
// encoding the result to the supplied interface. Note that the argument for
54-
// the to parameter should always be a reference to a slice.
54+
// the to parameter should always be a reference to a slice unless the filter method Single is specified.
5555
func (q *QueryBuilder) ExecuteToWithContext(ctx context.Context, to interface{}) (int64, error) {
5656
return executeTo(ctx, q.client, q.method, q.body, to, []string{q.tableName}, q.headers, q.params, q.err)
5757
}

0 commit comments

Comments
 (0)