Skip to content

Commit 8095e02

Browse files
committed
CDRIVER-1868 Fix typo/syntax error
1 parent 9bbc314 commit 8095e02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/mongoc_collection_find.page

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ print_all_documents (mongoc_collection_t *collection)
101101
<p>The driver automatically converts queries to the new "find" command syntax if needed, so this change is typically invisible to C Driver users. However, an application written exclusively for MongoDB 3.2 and later can choose to use the new syntax directly instead of relying on the driver to convert from the old syntax:</p>
102102
<code mime="text/x-csrc"><![CDATA[/* MongoDB 3.2+ "find" command syntax */
103103
query = BCON_NEW ("filter", "{", "foo", BCON_INT32 (1), "}",
104-
"sort": "{", "bar", BCON_INT32 (-1), "}");
104+
"sort", "{", "bar", BCON_INT32 (-1), "}");
105105
cursor = mongoc_collection_find (collection, MONGOC_QUERY_NONE, 0, 0, 0, query, NULL, NULL);
106106
]]></code>
107107
<p>The "find" command takes different options from the traditional OP_QUERY message.</p>

0 commit comments

Comments
 (0)