Skip to content

Commit e8b609f

Browse files
committed
NR feedback
1 parent 10425d1 commit e8b609f

File tree

2 files changed

+7
-8
lines changed
  • source
    • fundamentals/crud/read-operations
    • includes/fundamentals/code-snippets/crud

2 files changed

+7
-8
lines changed

source/fundamentals/crud/read-operations/limit.txt

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,17 @@ Overview
2121
--------
2222

2323
In this guide, you can learn how to use the {+driver-long+} to perform **limit**
24-
operations to limit the number of returned documents from a read operation.
24+
operations. These operations specify the number of documents returned from a
25+
read operation.
2526

2627
Use the ``limit()`` method to cap the number of documents that a read operation
2728
can return. The operation returns fewer documents if there are not enough
2829
documents present to reach the specified limit.
2930

3031
If you use the ``limit()`` method with the ``skip()`` method, the skip applies
3132
first, and the limit only applies to the remaining documents. To learn more
32-
about skip operations, see :ref:`Skip Returned Results <rust-skip-guide>`.
33+
about skip operations, see the :ref:`Skip Returned Results <rust-skip-guide>`
34+
guide.
3335

3436
Sample Data for Examples
3537
------------------------
@@ -62,7 +64,7 @@ This section describes how to limit results in the following ways:
6264

6365
- :ref:`limit() method <rust-limit-method>`: Chain the ``limit()`` method to the
6466
``find()`` method
65-
- :ref:`FindOptions struct <rust-findoptions-limit>`: Use the ``limit()`` option
67+
- :ref:`FindOptions struct <rust-findoptions-limit>`: Use the ``limit`` option
6668
- :ref:`Aggregation pipleline <rust-aggregation-limit>`: Create a pipeline that uses the ``$limit`` stage
6769

6870
.. _rust-limit-method:
@@ -166,7 +168,6 @@ To learn more about the operations mentioned in this guide, see the following gu
166168

167169
- :ref:`rust-query-guide`
168170
- :ref:`rust-retrieve-guide`
169-
- :ref:`rust-compound-operations`
170171
- :ref:`rust-aggregation`
171172
- :ref:`rust-sort-guide`
172173

@@ -178,7 +179,5 @@ following API documentation:
178179

179180
- `find() <{+api+}/struct.Collection.html#method.find>`__
180181
- `FindOptions <{+api+}/options/struct.FindOptions.html>`__
181-
- `FindOneOptions <{+api+}/options/struct.FindOneOptions.html>`__
182182
- `Cursor <{+api+}/struct.Cursor.html>`__
183-
- `aggregate() <{+api+}/struct.Collection.html#method.aggregate>`__
184-
- `AggregateOptions <{+api+}/options/struct.AggregateOptions.html>`__
183+
- `aggregate() <{+api+}/struct.Collection.html#method.aggregate>`__

source/includes/fundamentals/code-snippets/crud/limit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ async fn main() -> mongodb::error::Result<()> {
8181
// end-limit-options-example
8282

8383
// Retrieves documents in the collection, sorts results by their "length" field
84-
// values, the limits the results to the first document.
84+
// values, then limits the results to the first document.
8585
// start-aggregation-limit-example
8686
let pipeline = vec![
8787
doc! { "$match": {} },

0 commit comments

Comments
 (0)