Skip to content

Commit e40e9e7

Browse files
committed
edits
1 parent 10396b4 commit e40e9e7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

source/write/update.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,11 @@ describes some options you can set in the array:
148148
* - ``comment``
149149
- | A comment to attach to the operation. For more information, see the :manual:`insert command
150150
fields </reference/command/insert/#command-fields>` guide in the
151-
{+mdb-server+} manual for more information.
151+
{+mdb-server+} manual.
152152

153153
The following example uses the ``updateMany()`` method to find all documents that
154154
have ``borough`` value of ``'Manhattan'``. It then updates the ``borough`` value
155-
in these documents to ``'Manhattan (north)''``. Because the ``upsert`` option is
155+
in these documents to ``'Manhattan (north)'``. Because the ``upsert`` option is
156156
set to ``true``, the {+php-library+} inserts a new document if the query filter doesn't
157157
match any existing documents.
158158

@@ -200,6 +200,7 @@ of matching documents from ``'Dunkin' Donuts'`` to ``'Dunkin''``. It calls the
200200
``getModifiedCount()`` member function to print the number of modified documents:
201201

202202
.. io-code-block::
203+
:copyable:
203204

204205
.. input:: /includes/write/update.php
205206
:start-after: start-update-result
@@ -208,7 +209,8 @@ of matching documents from ``'Dunkin' Donuts'`` to ``'Dunkin''``. It calls the
208209
:dedent:
209210

210211
.. output::
211-
212+
:visible: false
213+
212214
Modified documents: 206
213215

214216
Additional Information

0 commit comments

Comments
 (0)