Skip to content

Commit 467f5c9

Browse files
committed
DOCS-675 incorporate Sam's comments, awaiting lgtm from scott
1 parent e77ec8d commit 467f5c9

File tree

2 files changed

+18
-21
lines changed

2 files changed

+18
-21
lines changed

source/applications/read.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -328,22 +328,22 @@ Cursor
328328
~~~~~~
329329

330330
The :method:`find() <db.collection.find()>` method returns a
331-
:term:`cursor`; however, in the :program:`mongo` shell, if the result
332-
of the :method:`find() <db.collection.find()>` is not assigned to a
333-
variable, then the cursor is automatically iterated up to 20 times
334-
[#setShellBatchSize]_ to print the documents referenced by the cursor,
335-
as in the following example:
331+
:term:`cursor` to the results; however, in the :program:`mongo` shell,
332+
if the returned cursor is not assigned to a variable, then the cursor
333+
is automatically iterated up to 20 times [#setShellBatchSize]_ to print
334+
up to the first 20 documents that match the query, as in the following
335+
example:
336336

337337
.. code-block:: javascript
338338

339339
db.bios.find( { _id: 1 } );
340340

341-
If the result of the :method:`find() <db.collection.find()>` is
342-
assigned to a variable:
341+
When you assign the :method:`find() <db.collection.find()>` to a
342+
variable:
343343

344344
- you can type the name of the cursor variable to iterate up to 20
345-
times [#setShellBatchSize]_ and print the documents referenced by the
346-
cursor, as in the following example:
345+
times [#setShellBatchSize]_ and print the matching documents, as in
346+
the following example:
347347

348348
.. code-block:: javascript
349349

source/core/read-operations.txt

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -662,25 +662,22 @@ Cursors
662662
-------
663663

664664
The :method:`find() <db.collection.find()>` method returns a
665-
:term:`cursor`; however, in the :program:`mongo` shell, if the result
666-
of the :method:`find() <db.collection.find()>` is not assigned to a
667-
variable, then the cursor is automatically iterated up to 20 times
668-
[#setShellBatchSize]_ to print the documents referenced by the cursor,
669-
as in the following example:
665+
:term:`cursor` to the results; however, in the :program:`mongo` shell,
666+
if the returned cursor is not assigned to a variable, then the cursor
667+
is automatically iterated up to 20 times [#setShellBatchSize]_ to print
668+
up to the first 20 documents that match the query, as in the following
669+
example:
670670

671671
.. code-block:: javascript
672672

673673
db.inventory.find( { type: 'food' } );
674674

675-
This operation will iterate the cursor up to 20 times and print the
676-
first 20 documents referenced by the cursor.
677-
678-
If the result of the :method:`find() <db.collection.find()>` is
679-
assigned to a variable:
675+
When you assign the :method:`find() <db.collection.find()>` to a
676+
variable:
680677

681678
- you can type the name of the cursor variable to iterate up to 20
682-
times [#setShellBatchSize]_ and print the documents referenced by the
683-
cursor, as in the following example:
679+
times [#setShellBatchSize]_ and print the matching documents, as in
680+
the following example:
684681

685682
.. code-block:: javascript
686683

0 commit comments

Comments
 (0)