File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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.
201201func (c * Cursor ) One (result interface {}) error {
202202 ok := c .Next (result )
You can’t perform that action at this time.
0 commit comments