Skip to content

Commit a436f27

Browse files
henrikedinajdavis
authored andcommitted
CDRIVER-2800 Fix .rst files to reflect new install path.
1 parent 490780e commit a436f27

File tree

3 files changed

+12
-15
lines changed

3 files changed

+12
-15
lines changed

src/libmongoc/doc/advanced-connections.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Connecting to a `replica set <http://docs.mongodb.org/manual/replication/>`_ is
1515
.. code-block:: c
1616
1717
#include <bson/bson.h>
18-
#include <mongoc.h>
18+
#include <mongoc/mongoc.h>
1919
2020
int
2121
main (int argc, char *argv[])
@@ -58,7 +58,7 @@ If more than one hostname is specified, a seed list will be created to attempt f
5858
.. code-block:: c
5959
6060
#include <bson/bson.h>
61-
#include <mongoc.h>
61+
#include <mongoc/mongoc.h>
6262
6363
int
6464
main (int argc, char *argv[])

src/libmongoc/doc/mongoc_matcher_t.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,8 @@ Example
4646
.. code-block:: c
4747
:caption: Filter a sequence of BSON documents from STDIN based on a query
4848
49-
#include <bcon.h>
5049
#include <bson/bson.h>
51-
#include <mongoc.h>
50+
#include <mongoc/mongoc.h>
5251
#include <stdio.h>
5352
5453
int

src/libmongoc/doc/tutorial.rst

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ Include and link libmongoc in your C program
3333
Include mongoc.h
3434
^^^^^^^^^^^^^^^^
3535

36-
All libmongoc's functions and types are available in one header file. Simply include ``mongoc.h``:
36+
All libmongoc's functions and types are available in one header file. Simply include ``mongoc/mongoc.h``:
3737

3838
.. code-block:: c
3939
40-
#include <mongoc.h>
40+
#include <mongoc/mongoc.h>
4141
4242
CMake
4343
'''''
@@ -348,7 +348,7 @@ When finished, ensure that allocated structures are freed by using their respect
348348
.. code-block:: c
349349
350350
#include <bson/bson.h>
351-
#include <mongoc.h>
351+
#include <mongoc/mongoc.h>
352352
#include <stdio.h>
353353
354354
int
@@ -431,7 +431,7 @@ This first example uses an empty query specifier to find all documents in the da
431431
.. code-block:: c
432432
433433
#include <bson/bson.h>
434-
#include <mongoc.h>
434+
#include <mongoc/mongoc.h>
435435
#include <stdio.h>
436436
437437
int
@@ -488,7 +488,7 @@ To look for a specific document, add a specifier to ``query``. This example adds
488488
.. code-block:: c
489489
490490
#include <bson/bson.h>
491-
#include <mongoc.h>
491+
#include <mongoc/mongoc.h>
492492
#include <stdio.h>
493493
494494
int
@@ -547,9 +547,8 @@ Using the "mydb" database, the following example inserts an example document int
547547

548548
.. code-block:: c
549549
550-
#include <bcon.h>
551550
#include <bson/bson.h>
552-
#include <mongoc.h>
551+
#include <mongoc/mongoc.h>
553552
#include <stdio.h>
554553
555554
int
@@ -645,7 +644,7 @@ The following code inserts a sample document into the database "mydb" and collec
645644
.. code-block:: c
646645
647646
#include <bson/bson.h>
648-
#include <mongoc.h>
647+
#include <mongoc/mongoc.h>
649648
#include <stdio.h>
650649
651650
int
@@ -725,7 +724,7 @@ Counting the number of documents in a MongoDB collection is similar to performin
725724
.. code-block:: c
726725
727726
#include <bson/bson.h>
728-
#include <mongoc.h>
727+
#include <mongoc/mongoc.h>
729728
#include <stdio.h>
730729
731730
int
@@ -790,8 +789,7 @@ This example executes the `collStats <http://docs.mongodb.org/manual/reference/c
790789
.. code-block:: c
791790
792791
#include <bson/bson.h>
793-
#include <bcon.h>
794-
#include <mongoc.h>
792+
#include <mongoc/mongoc.h>
795793
#include <stdio.h>
796794
797795
int

0 commit comments

Comments
 (0)