Skip to content

Commit 047d3be

Browse files
author
Sam Kleinman
committed
DOCS-799 edits
1 parent a37b542 commit 047d3be

File tree

7 files changed

+20
-21
lines changed

7 files changed

+20
-21
lines changed

source/core/read-operations.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ In the :program:`mongo` shell, the :method:`find()
3434
<db.collection.find()>` and :method:`findOne()
3535
<db.collection.findOne()>` methods perform read operations. The
3636
:method:`find() <db.collection.find()>` method has the following
37-
syntax [#formal-query-structure]_:
37+
syntax: [#formal-query-structure]_
3838

3939
.. code-block:: javascript
4040

source/reference/meta-query-operators.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ Introduction
1111

1212
In addition to the :doc:`MongoDB Query Operators
1313
</reference/operators>`, there are a number of "meta" operators that
14-
you may use to modify the output or behavior of a query. On the server,
14+
you can modify the output or behavior of a query. On the server,
1515
MongoDB treats the query and the options as a single object. The
16-
:program:`mongo` shell may provide :ref:`cursor methods
17-
<js-query-cursor-methods>` for these options. When possible, use these
16+
:program:`mongo` shell and driver interfaces may provide :ref:`cursor methods
17+
<js-query-cursor-methods>` that wrap these options. When possible, use these
1818
methods; otherwise, you can add these options using either of the
1919
following syntax:
2020

@@ -44,7 +44,7 @@ user-friendly interface and are the preferred way to add these options.
4444

4545
.. include:: operator/max.txt
4646
:start-after: mongodb
47-
47+
4848
.. include:: operator/min.txt
4949
:start-after: mongodb
5050

source/reference/operator/comment.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ $comment
1414

1515
.. code-block:: javascript
1616

17-
db.collection.find( { <query> } )._addSpecial( "$comment", <comment to add> )
18-
db.collection.find( { $query: { <query> }, $comment: <comment to add> } )
17+
db.collection.find( { <query> } )._addSpecial( "$comment", <comment> )
18+
db.collection.find( { $query: { <query> }, $comment: <comment> } )

source/reference/operator/max.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ $max
3232

3333
db.collection.find( { <query> } ).max( { age: 100 } )
3434

35-
This operation above limits the query to those documents where the
35+
This operation limits the query to those documents where the
3636
field ``age`` is less than ``100`` using the index ``{ age: 1 }``.
37-
37+
3838
You can explicitly specify the corresponding index with
3939
:method:`cursor.hint()`. Otherwise, MongoDB selects the index using
4040
the fields in the ``indexbounds``; however, if multiple indexes
@@ -49,14 +49,14 @@ $max
4949
{ age: 1, type: -1 }
5050
{ age: 1, type: 1 }
5151

52-
Without explicitly using :method:`cursor.hint()`, it is unclear
53-
which index the following operation will select:
52+
Without explicitly using :method:`cursor.hint()`, MongoDB may
53+
select either index for the following operation:
5454

5555
.. code-block:: javascript
5656

5757
db.collection.find().max( { age: 50, type: 'B' } )
5858

59-
Use operation alone or in conjunction with :operator:`$min` to limit
59+
Use :operator:`$max` alone or in conjunction with :operator:`$min` to limit
6060
results to a specific range for the *same* index, as in the
6161
following example:
6262

@@ -75,5 +75,5 @@ $max
7575

7676
db.collection.find( { _id: 7 } ).max( { age: 25 } )
7777

78-
The query will use the index on the ``age`` field, even if the
78+
The query uses the index on the ``age`` field, even if the
7979
index on ``_id`` may be better.

source/reference/operator/min.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ $min
2323
db.collection.find( { $query: { <query> }, $min: { field1: <min value1>, ... fieldN: <min valueN> } } )
2424

2525
The :operator:`$min` specifies the lower bound for *all* keys of a
26-
specific index *in order*.
27-
26+
specific index *in order*.
27+
2828
Consider the following operations on a collection named
2929
``collection`` that has an index ``{ age: 1 }``:
3030

@@ -59,7 +59,7 @@ $min
5959
You can use :operator:`$min` in conjunction with :operator:`$max` to
6060
limit results to a specific range for the *same* index, as in the
6161
following example:
62-
62+
6363
.. code-block:: javascript
6464

6565
db.collection.find().min( { age: 20 } ).max( { age: 25 } )

source/reference/operator/query.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ $query
1919
.. code-block:: javascript
2020

2121
db.collection.find( { age : 25 } )
22-
22+
2323
These operations return only those documents in the collection named
2424
``collection`` where the ``age`` field equals ``25``.

source/reference/operator/snapshot.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ $snapshot
3939
:operator:`$orderby` (or the corresponding
4040
:method:`cursor.hint()` and :method:`cursor.sort()` methods.)
4141

42-
.. [#snapshot-alternative]
43-
44-
You can achieve the :operator:`$snapshot` isolation behavior
45-
using any *unique* index on invariable fields.
42+
.. [#snapshot-alternative] You can achieve the
43+
:operator:`$snapshot` isolation behavior using any *unique*
44+
index on invariable fields.

0 commit comments

Comments
 (0)