Skip to content

Commit 212ff26

Browse files
authored
DOCSP-36899: Quarterly cleanup (#876)
1 parent cf1d7b2 commit 212ff26

File tree

8 files changed

+26
-26
lines changed

8 files changed

+26
-26
lines changed

source/faq.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ timeout specification to an operation that returns a ``Cursor``:
163163

164164
const cursor = myColl.find({}).maxTimeMS(50);
165165

166-
What Happens to Running Operations If the Client Disconnects?
166+
What Happens to Running Operations if the Client Disconnects?
167167
-------------------------------------------------------------
168168

169169
Starting in {+mdb-server+} version 4.2, the server terminates
@@ -218,7 +218,7 @@ it in the ``options`` object of the constructor as follows:
218218
maxPoolSize: <integer value>,
219219
});
220220

221-
What Does a Value of "0" mean for "connectTimeoutMS" and "socketTimeoutMS"?
221+
What Does a Value of "0" Mean for "connectTimeoutMS" and "socketTimeoutMS"?
222222
---------------------------------------------------------------------------
223223

224224
If you set the value of ``connectTimeoutMS`` or ``socketTimeoutMS`` to
@@ -332,7 +332,7 @@ code sets ``maxPoolSize`` to ``150`` when creating a new ``MongoClient``:
332332
To learn more about connection pooling, see the :ref:`How Does Connection
333333
Pooling Work in the Node Driver? <node-faq-connection-pool>` FAQ entry.
334334

335-
How Can I Ensure My Connection String Is Valid for a Replica Set?
335+
How Can I Ensure my Connection String Is Valid for a Replica Set?
336336
-----------------------------------------------------------------
337337

338338
The connection string passed to the driver must use exact hostnames for

source/fundamentals/collations.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Set a Default Collation on a Collection
113113
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
114114

115115
In the following example, we create a new collection called ``souvenirs`` and
116-
assign a default collation with the "``fr_CA``" locale. The collation applies
116+
assign a default collation with the ``"fr_CA"`` locale. The collation applies
117117
to all :manual:`operations that support collation
118118
</reference/collation/#operations-that-support-collation>` performed on that
119119
collection.
@@ -125,16 +125,16 @@ collection.
125125

126126
Any of the operations that support collations automatically apply the collation
127127
defined on the collection. The query below searches the ``souvenirs``
128-
collection and applies the "``fr_CA``" locale collation:
128+
collection and applies the ``"fr_CA"`` locale collation:
129129

130130
.. literalinclude:: /code-snippets/collation/collection-auto-collation.js
131131
:language: javascript
132132
:start-after: start auto collation
133133
:end-before: end auto collation
134134

135135
You can specify a different collation as a parameter in an operation that
136-
supports collations. The following query specifies the "``is``" Iceland locale
137-
and ``caseFirst`` optional parameter with the value "``upper``":
136+
supports collations. The following query specifies the ``"is"`` Iceland locale
137+
and ``caseFirst`` optional parameter with the value ``"upper"``:
138138

139139
.. literalinclude:: /code-snippets/collation/collection-specify-collation.js
140140
:language: javascript
@@ -145,7 +145,7 @@ Assign a Collation to an Index
145145
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
146146

147147
In the following example, we create a new index on the ``title`` field of
148-
a collection with a collation set to the "``en_US``" locale.
148+
a collection with a collation set to the ``"en_US"`` locale.
149149

150150
.. literalinclude:: /code-snippets/collation/index-collation.js
151151
:language: javascript
@@ -186,7 +186,7 @@ find() and sort() Example
186186

187187
The following example calls both ``find()`` and ``sort()`` on a collection
188188
that uses the default binary collation. We use the German collation by
189-
setting the value of the ``locale`` parameter to ``de``.
189+
setting the value of the ``locale`` parameter to ``"de"``.
190190

191191
.. literalinclude:: /code-snippets/collation/find-sort-collation.js
192192
:language: javascript
@@ -274,7 +274,7 @@ documents:
274274

275275
If you perform the same operation without collation on the original
276276
collection of three documents, it matches documents based on the lexical value
277-
of the strings ("``16``", "``84``", and "``179``"), and deletes the first
277+
of the strings (``"16"``, ``"84"``, and ``"179"``), and deletes the first
278278
document it finds that matches the query criteria.
279279

280280
.. literalinclude:: /code-snippets/collation/findOneAndDelete-no-collation.js
@@ -283,7 +283,7 @@ document it finds that matches the query criteria.
283283
:end-before: end findOneAndDelete no collation
284284

285285
Since all the documents contain lexical values in the ``a`` field that
286-
match the criteria (greater than the lexical value of "``100``"), the operation
286+
match the criteria (greater than the lexical value of ``"100"``), the operation
287287
removes the first result. After you run the operation above, the collection
288288
contains the following documents:
289289

@@ -302,7 +302,7 @@ array of pipeline stages.
302302
The following example shows an aggregation pipeline on a collection that uses
303303
the default binary collation. The aggregation groups the ``first_name`` field,
304304
counts the total number of results in each group, and sorts the results by
305-
the German phonebook (``de@collation=phonebook`` locale) order.
305+
the German phonebook (``"de@collation=phonebook"`` locale) order.
306306

307307
.. note::
308308

source/fundamentals/crud/query-document.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ Comparison operators allow you to query for data based on comparisons
101101
with values in a collection. Common comparison operators include
102102
``$gt`` for "greater than" comparisons, ``$lt`` for "less than" comparisons,
103103
and ``$ne`` for "not equal to" comparisons. The following operation uses
104-
the comparison operator ``$gt`` to search for documents with a quantity
105-
value greater than 5 and prints them out:
104+
the comparison operator ``$gt`` to search for documents in which the ``qty``
105+
field value is greater than ``5`` and prints them out:
106106

107107
.. code-block:: javascript
108108

@@ -206,7 +206,7 @@ Evaluation operators allow you to execute higher level logic, like
206206
regex and text searches, when querying for documents in a collection.
207207
Common evaluation operators include ``$regex`` and ``$text``.
208208
The following operation uses the evaluation operator ``$mod`` to search
209-
for documents with a quantity value that is divisible by 3 with
209+
for documents in which the ``qty`` field value is divisible by 3 with
210210
a remainder of 0:
211211

212212
.. code-block:: javascript

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Pass the name of the document field to return a list of the field's unique value
5858
Example
5959
~~~~~~~
6060

61-
The "``Queens``" and "``Manhattan``" borough values each appear more than
61+
The ``"Queens"`` and ``"Manhattan"`` borough values each appear more than
6262
once in the sample documents. However, the following example retrieves the
6363
unique values of the ``borough`` field:
6464

@@ -90,7 +90,7 @@ Example
9090
```````
9191

9292
The following example outputs the distinct values of the ``cuisine`` field but
93-
excludes restaurants in "``Brooklyn``":
93+
excludes restaurants in ``"Brooklyn"``:
9494

9595
.. code-block:: javascript
9696

@@ -103,8 +103,8 @@ excludes restaurants in "``Brooklyn``":
103103
console.dir(doc);
104104
}
105105

106-
In this case, the query filter matches every borough value except for "``Brooklyn``". This
107-
prevents ``distinct()`` from outputting one ``cuisine`` value, "``Middle Eastern``".
106+
In this case, the query filter matches every borough value except for ``"Brooklyn"``. This
107+
prevents ``distinct()`` from outputting one ``cuisine`` value, ``"Middle Eastern"``.
108108
The code outputs the following values:
109109

110110
.. code-block:: json

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Example
5353
In the following example, we query the collection with a filter that
5454
matches all the documents and pass options that specifies ``sort`` and
5555
``skip`` commands as query options. The sort option specifies that fruit
56-
documents with higher ratings are returned before ones with lower
56+
documents that have higher ``rating`` values are returned before ones with lower
5757
ratings. The skip option specifies that the first 2 documents are
5858
omitted from the result:
5959

source/fundamentals/indexes.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ index on the ``cast`` field in the ``movies`` collection of the
166166
:dedent:
167167

168168
The following code queries the multikey index to find
169-
documents with a ``cast`` field value that contains "Viola Davis":
169+
documents in which the ``cast`` field value contains ``"Viola Davis"``:
170170

171171
.. literalinclude:: /code-snippets/indexes/multikey.js
172172
:language: js

source/usage-examples.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ Overview
3535
--------
3636

3737
Usage examples provide convenient starting points for popular MongoDB
38-
operations. Each example provides:
38+
operations. Each example provides the following information:
3939

40-
- an explanation of the operation in the example showing the
40+
- Explanation of the operation in the example, including the
4141
purpose and a sample use case for the method
4242

43-
- an explanation of how to use the operation, including parameters,
43+
- Explanation of how to use the operation, including parameters,
4444
return values, and common exceptions you might encounter
4545

46-
- a full Node.js program that you can copy and paste to run the example
46+
- Full Node.js program that you can copy and paste to run the example
4747
in your own environment
4848

4949
How to Use the Usage Examples

source/whats-new.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ Node.js Version
865865

866866
The minimum supported version of Node.js is now v12.9 or greater for
867867
version 4 of the driver. Support for our 3.x branches will continue
868-
until midyear 2022 to allow time for users to upgrade.
868+
until mid-year 2022 to allow time for users to upgrade.
869869

870870
.. note::
871871

0 commit comments

Comments
 (0)