Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1868

Small typo in mongoc_collection_find example doc

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.5.0
    • Affects Version/s: None
    • Component/s: Docs, libmongoc
    • None

      There is a BCON example typo in http://mongoc.org/libmongoc/current/mongoc_collection_find.html under the The "find" command section.

      Where the example states:

      query = BCON_NEW ("filter", "{", "foo", BCON_INT32 (1), "}",
                        "sort": "{", "bar", BCON_INT32 (-1), "}");
      cursor = mongoc_collection_find (collection, MONGOC_QUERY_NONE, 0, 0, 0, query, NULL, NULL);
      

      The semi colon after 'sort' is invalid, it should be a comma.

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            wan.bachtiar@mongodb.com Wan Bachtiar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: