Skip to content

Commit ed1a52d

Browse files
committed
vale errors
1 parent 86e4644 commit ed1a52d

File tree

18 files changed

+41
-50
lines changed

18 files changed

+41
-50
lines changed

config/intersphinx.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Weirdly, giza wants a non-empty list of two or more, so we have to include extraneous/unused one --hence the python
1+
# Weirdly, giza wants a non-empty list of two or more, so we must include extraneous/unused one --hence the python
22
name: python
33
url: https://docs.python.org/2/
44
path: python2.inv

source/atlas-search.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Use the ``Compound()`` method to combine two or more operators into a single
122122
search.
123123

124124
The following example searches the ``guitars`` collection for any documents
125-
that match all of the following criteria:
125+
that match all the following criteria:
126126

127127
- The ``rating`` field exists on the document
128128
- The ``in_stock`` field is not ``false``

source/connect/connection-options.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ The following code example shows how to perform the preceding steps:
8686
You can also create a ``MongoClientSettings`` object from a connection string by calling the
8787
``MongoClientSettings.FromConnectionString()`` method and passing the connection string,
8888
as shown in the following example. This is useful if you already have a connection string
89-
but want to modify some settings programmatically, or if you want to specify settings
89+
but want to modify some settings programmatically, or if you must specify settings
9090
that aren't available in the connection string.
9191

9292
.. literalinclude:: /includes/fundamentals/code-examples/connection/ConnectionOptions.cs
@@ -133,6 +133,10 @@ this process:
133133
Connection Options
134134
------------------
135135

136+
The following sections describe the connection options available in the
137+
{+driver-short+} and how to specify them by using a ``MongoClientSettings`` or
138+
``MongoUrlBuilder`` object.
139+
136140
.. _csharp-replica-set-options:
137141

138142
Replica Set Options

source/connect/connection-options/stable-api.txt

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@
1212
:depth: 2
1313
:class: singlecol
1414

15-
.. note::
16-
17-
The {+stable-api+} feature requires {+mdb-server+} 5.0 or later.
18-
19-
You should use the {+stable-api+} feature only if all of the MongoDB
20-
servers you're connecting to support this feature.
21-
2215
Overview
2316
--------
2417

@@ -46,10 +39,10 @@ version of the {+stable-api+}.
4639
.. tip::
4740

4841
Once you've created a ``MongoClient``, you can't change its {+stable-api+} version.
49-
If you need to run commands using more than one version of the
42+
If you must run commands using more than one version of the
5043
{+stable-api+}, instantiate a separate client with that version.
5144

52-
If you need to run commands not covered by the {+stable-api+}, make sure the
45+
If you must run commands not covered by the {+stable-api+}, make sure the
5346
"strict" option is disabled. See the section on
5447
:ref:`{+stable-api+} Options <stable-api-options>` for more information.
5548

source/connect/connection-troubleshooting.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ You can also set configuration settings by creating a ``MongoClientSettings``
168168
object and passing that to the ``MongoClient`` constructor. You can use the
169169
``Credential`` property to set the login credentials including specifying the
170170
authentication database. For more information about using ``MongoClientSettings``
171-
as well as some examples, see
171+
and to see some examples, see
172172
:ref:`Using MongoClientSettings <csharp-mongo-client-settings>`.
173173

174174
You can check if this is the issue by attempting to connect to a MongoDB
@@ -249,7 +249,7 @@ The following section describes a method that may help resolve the issue.
249249
Check the Number of Connections
250250
-------------------------------
251251

252-
If you need to create more open connections, increase ``MaxConnectionPoolSize``. For more
252+
If you must create more open connections, increase ``MaxConnectionPoolSize``. For more
253253
information about checking the number of connections, see
254254
:ref:`Check the Number of Connections <csharp-troubleshooting-connection-number-connections>`
255255
in the Error Sending Message section.
@@ -279,7 +279,7 @@ time the driver spends attempting to establish the connection by using the
279279
:manual:`Timeout Options </reference/connection-string/#timeout-options>` in
280280
the Server manual.
281281

282-
You should ensure the ``connectTimeoutMS`` setting is not lower than
282+
Ensure the ``connectTimeoutMS`` setting is not lower than
283283
the highest network latency you have to a member of the set. If one of the
284284
secondary members has a latency of 10000 milliseconds, setting the
285285
``connectTimeoutMS`` to 9000 prevents the driver from ever connecting to that
@@ -301,7 +301,7 @@ You can set this option on the connection string. The following example sets
301301

302302
You can also set configuration settings by creating a ``MongoClientSettings``
303303
object and passing that to the ``MongoClient`` constructor. For more information
304-
about using ``MongoClientSettings`` as well as some examples, see
304+
about using ``MongoClientSettings`` and to see some examples, see
305305
:ref:`Using MongoClientSettings <csharp-mongo-client-settings>`.
306306

307307
Check the Number of Connections

source/crud/gridfs.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ code.
690690
.. note:: File Revisions
691691

692692
The ``Delete()`` and ``DeleteAsync()`` methods support deleting only one file at a time.
693-
If you want to delete each file revision, or files with different upload
693+
To delete each file revision, or files with different upload
694694
times that share the same file name, collect the ``_id`` values of each revision.
695695
Then, pass each ``_id`` value in separate calls to the ``Delete()`` or ``DeleteAsync()``
696696
method.

source/crud/insert.txt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,8 @@ Assume you want to insert the following documents:
248248

249249
If you attempt to insert these documents with default
250250
``InsertManyOptions``, the driver throws a ``MongoBulkWriteException`` at the third
251-
document because of the repeated ``_id`` value, but the documents before
252-
the error-producing document are still inserted into your collection.
253-
254-
If you look inside your collection, you should be able to see the following documents:
251+
document because of the repeated ``_id`` value. The operation adds only the first two documents
252+
to the collection:
255253

256254
.. code-block:: json
257255
:copyable: false
@@ -262,9 +260,7 @@ If you look inside your collection, you should be able to see the following docu
262260
If you set ``IsOrdered`` to ``false`` in your insert operation, the driver will
263261
continue to insert your documents even if some documents produce errors.
264262
With this modified insert behavior, the driver throws an exception but inserts all documents
265-
that do not produce errors.
266-
267-
If you look inside your collection, you should be able to see the following documents:
263+
that do not produce errors:
268264

269265
.. code-block:: json
270266
:copyable: false

source/crud/query/query-filter.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,12 +586,12 @@ bitwise operations and the equivalent {+mdb-server+} operators:
586586
- {+mdb-server+} Operator
587587

588588
* - ``BitsAllClear()``
589-
- Matches documents where all of the specified bit positions are clear (``0``) in
589+
- Matches documents where all the specified bit positions are clear (``0``) in
590590
the specified field.
591591
- :manual:`$bitsAllClear </reference/operator/query/bitsAllClear/>`
592592

593593
* - ``BitsAllSet()``
594-
- Matches documents where all of the specified bit positions are set (``1``) in
594+
- Matches documents where all the specified bit positions are set (``1``) in
595595
the specified field.
596596
- :manual:`$bitsAllSet </reference/operator/query/bitsAllSet/>`
597597

source/data-formats/bson.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ write to a file, perform the following steps:
9595
#. For each BSON document and subdocument you want to create, call
9696
``WriteStartDocument()``.
9797
#. Within each BSON document and subdocument, call ``WriteName()`` to set the field
98-
name and the appropriate ``Write*`` method to set its value. Each data type has a
99-
dedicated ``Write*`` method that you should use.
98+
name and the appropriate ``Write*`` method to set its value. Use the
99+
dedicated ``Write*`` method that corresponds to each data type.
100100
#. To start and end arrays, use ``WriteStartArray()`` and ``WriteEndArray()``.
101101
#. At the end of each document and subdocument, call ``WriteEndDocument()``.
102102

source/data-formats/custom-types/class-mapping.txt

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

2323
In this guide, you can learn how to customize the way the {+driver-long+}
24-
maps BSON documents to and from {+language+} classes. You should read this page
25-
to learn more about the default class mapping behavior, or if you need to
24+
maps BSON documents to and from {+language+} classes. Read this page
25+
to learn more about the default class mapping behavior, or if you must
2626
customize the way the driver serializes or deserializes your data.
2727

2828
Automatic Class Mapping
@@ -35,7 +35,7 @@ the name of the field in the document to the name of the property in the class.
3535

3636
.. important::
3737

38-
The type of the property in your class should match the type of the field in
38+
Match the type of the property in your class to the type of the field in
3939
the document. The {+driver-short+} instantiates a serializer based on the
4040
type of the property in your class. If the types don't match when the driver
4141
attempts to deserialize the data, the serializer throws an exception.
@@ -72,7 +72,7 @@ class:
7272
.. important::
7373

7474
You must register a class map *before* it's needed in your code. We recommend
75-
registering class maps prior to initializing a connection with MongoDB.
75+
registering class maps before initializing a connection with MongoDB.
7676

7777
You can also manually map a subset of class properties, while still
7878
allowing the driver to automatically map the remaining properties. To do this,
@@ -241,11 +241,11 @@ You can also support extra elements when initializing a class map as follows:
241241
Dynamically Serialize Properties
242242
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
243243

244-
You can use a method to determine whether or not to serialize a property. For
244+
You can use a method to determine whether to serialize a property. For
245245
the driver to automatically use the method when serializing, you must prefix the
246246
method name with ``ShouldSerialize`` followed by the name of the property that
247247
the method applies to. When the driver sees a method with this naming
248-
convention, it uses that method to determine whether or not to serialize
248+
convention, it uses that method to determine whether to serialize
249249
properties that have the provided property name.
250250

251251
The following example creates a method that only serializes the ``Age`` property

0 commit comments

Comments
 (0)