Skip to content

Commit 7250575

Browse files
committed
DOCS-689 incorporate feedback from jeremy
1 parent 2327ffc commit 7250575

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

source/mongo.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ To start the :program:`mongo` shell and connect to your :doc:`MongoDB
6262

6363
use myDatabase
6464

65-
To list the available database, use the command ``show dbs``. See
65+
To list the available databases, use the command ``show dbs``. See
6666
also :ref:`mongo-shell-getSiblingDB` to access a different database
6767
from the current database.
6868

@@ -104,7 +104,7 @@ From the :program:`mongo` shell, you can use the :doc:`shell methods
104104
If the :program:`mongo` shell does not accept the name of the
105105
collection, for instance if the name contains a space or starts with
106106
a number, you can use an alternate syntax to refer to the
107-
collection, as in the following alternates:
107+
collection, as in the following:
108108

109109
.. code-block:: javascript
110110

@@ -434,11 +434,12 @@ Some useful methods for handling cursors are:
434434
cursor has more documents to return.
435435

436436
- :method:`next() <cursor.next()>` which returns the next document and
437-
moves by one the position of the cursor.
437+
advances the cursor position forward by one.
438438

439439
- :method:`forEach(\<function\>) <cursor.forEach()>` which iterates the
440440
whole cursor and applies the ``<function>`` to each document returned
441-
by the cursor.
441+
by the cursor. The ``<function>`` expects a single argument which
442+
corresponds to the document from each iteration.
442443

443444
For examples on iterating a cursor and retrieving the documents from
444445
the cursor, see :ref:`cursor handling <read-operations-cursors>`. See

0 commit comments

Comments
 (0)