@@ -42,7 +42,7 @@ type, which you can pass to any method that expects an update argument.
4242
4343 import static com.mongodb.client.model.Updates.*;
4444
45- The examples below assume this static import.
45+ The following examples assume this static import.
4646
4747The examples in this guide use the following document:
4848
@@ -75,7 +75,7 @@ The following example sets the value of the ``qty`` field to "11":
7575 :start-after: begin setUpdate
7676 :end-before: end setUpdate
7777
78- The example above updates the original document to the following state:
78+ The preceding example updates the original document to the following state:
7979
8080.. code-block:: json
8181 :copyable: false
@@ -101,7 +101,7 @@ The following example deletes the ``qty`` field:
101101 :start-after: begin unsetUpdate
102102 :end-before: end unsetUpdate
103103
104- The example above updates the original document to the following state:
104+ The preceding example updates the original document to the following state:
105105
106106.. code-block:: json
107107 :copyable: false
@@ -128,7 +128,7 @@ if an upsert resulted in the insert of a document:
128128 :start-after: begin setOnInsertUpdate
129129 :end-before: end setOnInsertUpdate
130130
131- The example above updates the original document to the following state:
131+ The preceding example updates the original document to the following state:
132132
133133.. code-block:: json
134134 :copyable: false
@@ -159,7 +159,7 @@ The following example increments the value of the ``qty`` field by
159159 :start-after: begin incUpdate
160160 :end-before: end incUpdate
161161
162- The example above updates the original document to the following state:
162+ The preceding example updates the original document to the following state:
163163
164164.. code-block:: json
165165 :copyable: false
@@ -186,7 +186,7 @@ The following example multiplies the value of the ``qty`` field by
186186 :start-after: begin mulUpdate
187187 :end-before: end mulUpdate
188188
189- The example above updates the original document to the following state:
189+ The preceding example updates the original document to the following state:
190190
191191.. code-block:: json
192192 :copyable: false
@@ -212,7 +212,7 @@ The following example renames the ``qty`` field to "quantity":
212212 :start-after: begin renameUpdate
213213 :end-before: end renameUpdate
214214
215- The example above updates the original document to the following state:
215+ The preceding example updates the original document to the following state:
216216
217217.. code-block:: json
218218 :copyable: false
@@ -237,7 +237,7 @@ specified in an update operation.
237237 :start-after: begin minUpdate
238238 :end-before: end minUpdate
239239
240- The example above updates the original document to the following state:
240+ The preceding example updates the original document to the following state:
241241
242242.. code-block:: json
243243 :copyable: false
@@ -265,7 +265,7 @@ maximum of its current value and "8":
265265 :start-after: begin maxUpdate
266266 :end-before: end maxUpdate
267267
268- The example above updates the original document to the following state:
268+ The preceding example updates the original document to the following state:
269269
270270.. code-block:: json
271271 :copyable: false
@@ -293,7 +293,7 @@ the current date as a BSON date:
293293 :start-after: begin currentDateUpdate
294294 :end-before: end currentDateUpdate
295295
296- The example above updates the original document to the following state:
296+ The preceding example updates the original document to the following state:
297297
298298.. code-block:: json
299299 :copyable: false
@@ -321,7 +321,7 @@ the current date as a BSON timestamp:
321321 :start-after: begin currentTimestampUpdate
322322 :end-before: end currentTimestampUpdate
323323
324- The example above updates the original document to the following state:
324+ The preceding example updates the original document to the following state:
325325
326326.. code-block:: json
327327 :copyable: false
@@ -361,7 +361,7 @@ The bitwise operation results in 15:
361361 ----
362362 1111
363363
364- The example above updates the original document to the following state:
364+ The preceding example updates the original document to the following state:
365365
366366.. code-block:: json
367367 :copyable: false
@@ -394,7 +394,7 @@ the ``vendor`` field:
394394 :start-after: begin addToSetUpdate
395395 :end-before: end addToSetUpdate
396396
397- The example above updates the original document to the following state:
397+ The preceding example updates the original document to the following state:
398398
399399.. code-block:: json
400400 :copyable: false
@@ -423,7 +423,7 @@ of the ``vendor`` field:
423423 :start-after: begin popFirstUpdate
424424 :end-before: end popFirstUpdate
425425
426- The example above updates the original document to the following state:
426+ The preceding example updates the original document to the following state:
427427
428428.. code-block:: json
429429 :copyable: false
@@ -450,7 +450,7 @@ The following example removes vendor "A" and "M" from the ``vendor`` array:
450450 :start-after: begin pullAllUpdate
451451 :end-before: end pullAllUpdate
452452
453- The example above updates the original document to the following state:
453+ The preceding example updates the original document to the following state:
454454
455455.. code-block:: json
456456 :copyable: false
@@ -478,7 +478,7 @@ array:
478478 :start-after: begin pullUpdate
479479 :end-before: end pullUpdate
480480
481- The example above updates the original document to the following state:
481+ The preceding example updates the original document to the following state:
482482
483483.. code-block:: json
484484 :copyable: false
@@ -504,7 +504,7 @@ The following examples pushes "C" to the ``vendor`` array:
504504 :start-after: begin pushUpdate
505505 :end-before: end pushUpdate
506506
507- The example above updates the original document to the following state:
507+ The preceding example updates the original document to the following state:
508508
509509.. code-block:: json
510510 :copyable: false
@@ -522,7 +522,8 @@ The example above updates the original document to the following state:
522522Combining Multiple Update Operators
523523-----------------------------------
524524An application can update multiple fields of a single document by
525- combining two or more of the update operators described above.
525+ combining two or more of the update operators described in the preceding
526+ sections.
526527
527528The following example increments the value of the ``qty`` field by "6", sets
528529the value of the ``color`` field to "purple", and pushes "R" to
@@ -534,7 +535,7 @@ the ``vendor`` field:
534535 :start-after: begin combineUpdate
535536 :end-before: end combineUpdate
536537
537- The example above updates the original document to the following state:
538+ The preceding example updates the original document to the following state:
538539
539540.. code-block:: json
540541 :copyable: false
0 commit comments