Skip to content

Commit d45d039

Browse files
committed
Fix typo in example to $maxTimeMS
1 parent b637bf4 commit d45d039

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/reference/operator/meta/maxTimeMS.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ $maxTimeMS
1818

1919
db.collection.find().maxTimeMS(100)
2020

21-
You can also specify the option in either of the following forms:
21+
You can also specify the option in any of the following forms:
2222

2323
.. code-block:: javascript
2424

25-
db.collection.find( $query: { } , $maxTimeMS: 100 } )
26-
db.collection.find()._addSpecial("$maxTimeMS", 100)
25+
db.collection.find( { } , { $maxTimeMS: 100 } )
26+
db.collection.find( { } )._addSpecial("$maxTimeMS", 100)
2727

2828
Interrupted operations return an error message similar to the
2929
following:

0 commit comments

Comments
 (0)