Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
-
*Location*: https://docs.mongodb.com/manual/reference/operator/query/bitsAllSet/
*User-Agent*: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36
*Referrer*: https://www.google.com/
*Screen Resolution*: 2560 x 1440
Description
There is an error in this section: The example shows 35 but the test explains about 50. The value to use is 50.
"The following query uses the $bitsAllSet operator to test whether field a has bits set at positions 1, 4, and 5 (the binary representation of the bitmask 50 is 00110010).
db.collection.find( { a:
{ $bitsAllSet: 35 }} )"