-
Type: Bug
-
Resolution: Done
-
Priority: Trivial - P5
-
Affects Version/s: None
-
Component/s: manual
-
Labels:
-
Environment:
*Location*: http://docs.mongodb.org/manual/reference/operator/update/inc/
*User-Agent*: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.2.0
*Screen Resolution*: 1920 x 1080
*repo*: docs
*source*: reference/operator/update/inc
The documentation says:
"The following update() operation uses the $inc operator to decrease the quantity field by -2 and increase the "metrics.orders" field by 1:"
To be precise, the $inc operator decreases the quantity field by positive 2, rather than negative 2.