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

Small typo in mongoc_collection_find example doc

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.5.0
    • None
    • docs, libmongoc
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: