diff --git a/source/reference/command/update.txt b/source/reference/command/update.txt index f2d843f90d7..5d49f27275f 100644 --- a/source/reference/command/update.txt +++ b/source/reference/command/update.txt @@ -62,7 +62,7 @@ If the ```` document contains all :ref:`update operator { $set: { status: "D" }, - quantity: { $inc: 2 } + $inc: { quantity: 2 } } Then, the :dbcommand:`update` command updates only the corresponding