Skip to content

Commit fab3104

Browse files
committed
DOCSP-30350 fixing example headings and final edits
(cherry picked from commit 2afc1d1)
1 parent 91d46f3 commit fab3104

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

source/crud/bulk.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -633,16 +633,16 @@ Troubleshooting
633633
Bulk Write Exception
634634
~~~~~~~~~~~~~~~~~~~~
635635

636-
The driver creates a write exception when a ``WriteError`` object is created. If an
636+
The driver creates a write exception when it creates a ``WriteError`` object. If an
637637
error is detected during a bulk write operation, a `MongoBulkWriteException
638638
<{+core-api+}/MongoBulkWriteException.html>`__ is thrown.
639639

640-
A ``MongoBulkWriteException`` contains a ``writeErrors`` field containing a list
641-
of one or more ``WriteError`` objects associated with the same bulk write
640+
A ``MongoBulkWriteException`` contains a ``writeErrors`` field consisting of a
641+
list of one or more ``WriteError`` objects associated with the same bulk write
642642
operation.
643643

644644
Example
645-
'''''''
645+
```````
646646

647647
For example, the driver raises a ``MongoBulkWriteException`` if your bulk insert
648648
contains two documents that violate the collection's schema

source/crud/insert.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,15 +199,15 @@ Troubleshooting
199199
Write Exception
200200
~~~~~~~~~~~~~~~
201201

202-
The driver creates a write exception when a ``WriteError`` object is created. The
202+
The driver creates a write exception when it creates a ``WriteError`` object. The
203203
driver raises a `MongoWriteException <{+core-api+}/MongoWriteException.html>`__
204204
for any write errors that occur when performing single write operations.
205205

206-
A ``MongoWriteException`` object contains an ``error`` field containing the
206+
A ``MongoWriteException`` object has an ``error`` field containing the
207207
``WriteError`` object that caused it.
208208

209209
Example
210-
'''''''
210+
```````
211211

212212
For example, the driver raises a ``MongoWriteException`` if you
213213
attempt to insert a document into a collection that violates the collection's

0 commit comments

Comments
 (0)