Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions source/tutorial/limit-number-of-elements-in-updated-array.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Consider the following document in the collection ``students``:
]
}

The the following update uses the :operator:`$push` operator with:
The following update uses the :operator:`$push` operator with:

- the :operator:`$each` modifier to append to the array 2 new elements,

Expand All @@ -48,7 +48,7 @@ The the following update uses the :operator:`$push` operator with:
.. code-block:: javascript

db.students.update(
{ _id: 1 },
{ _id: 1 },
{ $push: { scores: { $each : [
{ attempt: 3, score: 7 },
{ attempt: 4, score: 4 }
Expand Down Expand Up @@ -76,7 +76,7 @@ the ``scores`` array:
"scores" : [
{ "attempt" : 3, "score" : 7 },
{ "attempt" : 2, "score" : 8 },
{ "attempt" : 1, "score" : 10 }
{ "attempt" : 1, "score" : 10 }
]
}

Expand Down