Skip to content

Commit f5ccbd0

Browse files
committed
JS feedback
1 parent ed5e532 commit f5ccbd0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/write/replace.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@ Required Parameters
6060

6161
You must pass the following parameters to the ``replace_one`` method:
6262

63-
- **Query filter**: Matches which documents to update. To learn
63+
- **Query filter**: Specifies which documents to update. To learn
6464
more about query filters, see the :ref:`ruby-specify-query`
6565
guide.
6666

6767
- **Replacement document**: Specifies the fields and values that
6868
you want to replace the existing fields and values with.
6969

70-
Replace One Document
71-
--------------------
70+
Replace Example
71+
~~~~~~~~~~~~~~~
7272

7373
The following example uses the ``replace_one`` method to replace the
7474
fields and values of a document in which the value of the ``name`` field
@@ -148,7 +148,7 @@ configure the replace operation:
148148
variables for the operation. Values must be constant or closed
149149
expressions that don't reference document fields.
150150

151-
The following code performs the same replace operation as above, but sets the ``upsert``
151+
The following code performs the same replace operation as the preceding example, but sets the ``upsert``
152152
option to ``true``. This instructs the driver to insert a new document that has the fields
153153
and values specified in the replacement document if the query filter doesn't match any
154154
existing documents:

0 commit comments

Comments
 (0)