Skip to content

Commit 2bee52f

Browse files
author
Sam Kleinman
committed
minor: whitespace and line brekas
1 parent 6cfc3db commit 2bee52f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

source/includes/example-addToSet-each.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,16 @@ with the :update:`$each` modifier to add multiple elements to the
1212
1313
db.inventory.update(
1414
{ _id: 2 },
15-
{ $addToSet: { tags: {$each: [ "camera", "electronics", "accessories" ] } } }
15+
{ $addToSet: { tags: { $each: [ "camera",
16+
"electronics",
17+
"accessories" ] } } }
1618
)
1719
1820
The operation adds only ``"camera"`` and ``"accessories"`` to the
1921
``tags`` array since ``"electronics"`` already exists in the array:
2022

2123
.. code-block:: javascript
2224
23-
{ _id: 2, item: "cable", tags: [ "electronics", "supplies", "camera", "accessories" ] }
25+
{ _id: 2,
26+
item: "cable",
27+
tags: [ "electronics", "supplies", "camera", "accessories" ] }

0 commit comments

Comments
 (0)