Skip to content

Commit 3c78dd9

Browse files
committed
DOCS-5169: Fix missing brace in $push, rephrase intro in $addToSet
1 parent 6b46977 commit 3c78dd9

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

source/reference/operator/update/addToSet.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@ Definition
99

1010
.. update:: $addToSet
1111

12-
The :update:`$addToSet` operator adds a value to an array only *if* the
13-
value is *not* already in the array. If the value *is* in the
14-
array, :update:`$addToSet` does not modify the
15-
array.
12+
The :update:`$addToSet` operator adds a value to an array unless the value
13+
is already present, in which case :update:`$addToSet` does nothing.
1614

1715
The :update:`$addToSet` operator has the form:
1816

source/reference/operator/update/push.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Definition
1515

1616
.. code-block:: javascript
1717

18-
{ $push: { <field1>: <value1>, ... }
18+
{ $push: { <field1>: <value1>, ... } }
1919

2020
.. include:: /includes/use-dot-notation.rst
2121

0 commit comments

Comments
 (0)