File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
source/fundamentals/crud/write-operations Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ the ``age`` field in a document where the ``_id`` is ``2``:
211211If multiple documents match the query filter specified in
212212the ``UpdateOneModel`` instance, the operation updates the first
213213result. You can specify a sort in an ``UpdateOptions`` instance to apply
214- an order to matched documents before the driver performs the replace
214+ an order to matched documents before the driver performs the update
215215operation, as shown in the following code:
216216
217217.. code-block:: java
Original file line number Diff line number Diff line change @@ -100,9 +100,9 @@ The following example demonstrates how to change the value of the
100100 :end-before: end updateOneExample
101101
102102If multiple documents match the query filter specified in
103- the ``updateOne()`` method, it replaces the first result. You can
103+ the ``updateOne()`` method, it updates the first result. You can
104104specify a sort in an ``UpdateOptions`` instance to apply an order to
105- matched documents before the driver performs the replace operation, as
105+ matched documents before the driver performs the update operation, as
106106shown in the following code:
107107
108108.. literalinclude:: /includes/fundamentals/code-snippets/Update.java
You can’t perform that action at this time.
0 commit comments