Skip to content

Commit 4b0a86c

Browse files
author
Robert Zaremba
committed
documentation fixes
1 parent 34ae336 commit 4b0a86c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

query_transformation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func (o *OrderByOpts) toMap() map[string]interface{} {
3434
// Sort the sequence by document values of the given key(s).
3535
// To specify the index to use for ordering us a last argument in the following form:
3636
//
37-
// map[string]interface{}{"index": "index-name"}
37+
// OrderByOpts{Index: "index-name"}
3838
//
3939
// OrderBy defaults to ascending ordering. To explicitly specify the ordering,
4040
// wrap the attribute with either Asc or Desc.

results.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ func (c *Cursor) All(result interface{}) error {
196196
return c.Close()
197197
}
198198

199-
// All retrieves a single document from the result set into the provided
199+
// One retrieves a single document from the result set into the provided
200200
// slice and closes the cursor.
201201
func (c *Cursor) One(result interface{}) error {
202202
ok := c.Next(result)

0 commit comments

Comments
 (0)