diff --git a/source/reference/method/db.collection.update.txt b/source/reference/method/db.collection.update.txt index 8da17523b29..bb7ccd01345 100644 --- a/source/reference/method/db.collection.update.txt +++ b/source/reference/method/db.collection.update.txt @@ -8,7 +8,7 @@ db.collection.update() .. versionchanged:: 2.2 The :program:`mongo` shell adds an updated interface that - accepts an parameters in more clear :term:`document` form to + accepts parameters in a more clear :term:`document` form to specify ``multi`` and ``upsert`` options. The :method:`update() ` method provides the ability to @@ -191,4 +191,4 @@ db.collection.update() .. code-block:: javascript - db.products.update( { item: "magazine", qty: { $gt: 5 } }, { $set: { x: 25, y: 50 } }, { upsert: true } ) + db.products.update( { item: "magazine", qty: { $gt: 5 } }, { $set: { x: 25, y: 50 } }, true )