From b8c270c9c175b9f9ca31fa07d734a47586c121ce Mon Sep 17 00:00:00 2001 From: Andrew Aldridge Date: Mon, 6 Apr 2015 19:20:22 -0400 Subject: [PATCH] DOCS-5169: Fix missing brace in $push, rephrase intro in $addToSet --- source/reference/operator/update/addToSet.txt | 5 ++--- source/reference/operator/update/push.txt | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/source/reference/operator/update/addToSet.txt b/source/reference/operator/update/addToSet.txt index 67775cb80ed..29291f0e5a1 100644 --- a/source/reference/operator/update/addToSet.txt +++ b/source/reference/operator/update/addToSet.txt @@ -9,9 +9,8 @@ Definition .. update:: $addToSet - The :update:`$addToSet` operator adds a value to an array only *if* the - value is *not* already in the array. If the value *is* in the - array, :update:`$addToSet` does not modify the + The :update:`$addToSet` operator adds a value to an array unless the value + is already present, in which case :update:`$addToSet` does nothing to that array. The :update:`$addToSet` operator has the form: diff --git a/source/reference/operator/update/push.txt b/source/reference/operator/update/push.txt index caab3151adf..17210d0b7b2 100644 --- a/source/reference/operator/update/push.txt +++ b/source/reference/operator/update/push.txt @@ -15,7 +15,7 @@ Definition .. code-block:: javascript - { $push: { : , ... } + { $push: { : , ... } } .. include:: /includes/use-dot-notation.rst