Skip to content

Commit 90e437a

Browse files
committed
docs: improve method comments
1 parent 9e475dc commit 90e437a

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
@@ -42,14 +42,14 @@ func (q *QueryBuilder) ExecuteWithContext(ctx context.Context) ([]byte, int64, e
4242

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

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

0 commit comments

Comments
 (0)