Skip to content

Commit a75796f

Browse files
committed
format "NULL" in monospace in docs
1 parent fce1ba0 commit a75796f

20 files changed

+31
-31
lines changed

doc/mongoc_client_get_gridfs.page

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ mongoc_client_get_gridfs (mongoc_client_t *client,
2929
<table>
3030
<tr><td><p>client</p></td><td><p>A <code xref="mongoc_client_t">mongoc_client_t</code>.</p></td></tr>
3131
<tr><td><p>db</p></td><td><p>The database name.</p></td></tr>
32-
<tr><td><p>prefix</p></td><td><p>Optional prefix for gridfs collection names or NULL.</p></td></tr>
32+
<tr><td><p>prefix</p></td><td><p>Optional prefix for gridfs collection names or <code>NULL</code>.</p></td></tr>
3333
<tr><td><p>error</p></td><td><p>An optional location for a <code xref="bson:bson_error_t">bson_error_t</code> or <code>NULL</code>.</p></td></tr>
3434
</table>
3535
</section>

doc/mongoc_collection_aggregate.page

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ mongoc_collection_aggregate (mongoc_collection_t *collection,
3131
<tr><td><p>collection</p></td><td><p>A <code xref="mongoc_collection_t">mongoc_collection_t</code>.</p></td></tr>
3232
<tr><td><p>flags</p></td><td><p>A <code xref="mongoc_query_flags_t">mongoc_query_flags_t</code>.</p></td></tr>
3333
<tr><td><p>pipeline</p></td><td><p>A <code xref="bson:bson_t">bson_t</code> containing the pipeline array.</p></td></tr>
34-
<tr><td><p>options</p></td><td><p>A <code xref="bson:bson_t">bson_t</code> containing options for the pipeline, or NULL.</p></td></tr>
35-
<tr><td><p>read_prefs</p></td><td><p>A <code xref="mongoc_read_prefs_t">mongoc_read_prefs_t</code> or NULL.</p></td></tr>
34+
<tr><td><p>options</p></td><td><p>A <code xref="bson:bson_t">bson_t</code> containing options for the pipeline, or <code>NULL</code>.</p></td></tr>
35+
<tr><td><p>read_prefs</p></td><td><p>A <code xref="mongoc_read_prefs_t">mongoc_read_prefs_t</code> or <code>NULL</code>.</p></td></tr>
3636
</table>
3737
</section>
3838

@@ -49,7 +49,7 @@ mongoc_collection_aggregate (mongoc_collection_t *collection,
4949

5050
<section id="return">
5151
<title>Returns</title>
52-
<p>This function returns a newly allocated <code xref="mongoc_cursor_t">mongoc_cursor_t</code> that should be freed with <code xref="mongoc_cursor_destroy">mongoc_cursor_destroy()</code> when no longer in use. NULL may be returned if parameters are invalid.</p>
52+
<p>This function returns a newly allocated <code xref="mongoc_cursor_t">mongoc_cursor_t</code> that should be freed with <code xref="mongoc_cursor_destroy">mongoc_cursor_destroy()</code> when no longer in use. <code>NULL</code> may be returned if parameters are invalid.</p>
5353
<note style="warning"><p>Failure to handle the result of this function is a programming error.</p></note>
5454
</section>
5555

doc/mongoc_collection_command.page

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ BSON_GNUC_WARN_UNUSED_RESULT;
3838
<tr><td><p>limit</p></td><td><p>A uint32_t with the max number of documents to return or zero.</p></td></tr>
3939
<tr><td><p>batch_size</p></td><td><p>A uint32_t with the number of documents in each batch or zero. Default is 100.</p></td></tr>
4040
<tr><td><p>command</p></td><td><p>A <code xref="bson:bson_t">bson_t</code> containing the command to execute.</p></td></tr>
41-
<tr><td><p>fields</p></td><td><p>A <code xref="bson:bson_t">bson_t</code> containing the fields to return or NULL. Not all commands support this option.</p></td></tr>
42-
<tr><td><p>read_prefs</p></td><td><p>A <code xref="mongoc_read_prefs_t">mongoc_read_prefs_t</code> or NULL.</p></td></tr>
41+
<tr><td><p>fields</p></td><td><p>A <code xref="bson:bson_t">bson_t</code> containing the fields to return or <code>NULL</code>. Not all commands support this option.</p></td></tr>
42+
<tr><td><p>read_prefs</p></td><td><p>A <code xref="mongoc_read_prefs_t">mongoc_read_prefs_t</code> or <code>NULL</code>.</p></td></tr>
4343
</table>
4444
</section>
4545

doc/mongoc_collection_command_simple.page

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ mongoc_collection_command_simple (mongoc_collection_t *collection,
3030
<table>
3131
<tr><td><p>collection</p></td><td><p>A <code xref="mongoc_collection_t">mongoc_collection_t</code>.</p></td></tr>
3232
<tr><td><p>command</p></td><td><p>A <code xref="bson:bson_t">bson_t</code> containing the command to execute.</p></td></tr>
33-
<tr><td><p>read_prefs</p></td><td><p>A <code xref="mongoc_read_prefs_t">mongoc_read_prefs_t</code> or NULL.</p></td></tr>
33+
<tr><td><p>read_prefs</p></td><td><p>A <code xref="mongoc_read_prefs_t">mongoc_read_prefs_t</code> or <code>NULL</code>.</p></td></tr>
3434
<tr><td><p>reply</p></td><td><p>A location to initialize a <code xref="bson:bson_t">bson_t</code>. This should be on the stack.</p></td></tr>
3535
<tr><td><p>error</p></td><td><p>An optional location for a <code xref="bson:bson_error_t">bson_error_t</code> or <code>NULL</code>.</p></td></tr>
3636
</table>

doc/mongoc_collection_count.page

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ mongoc_collection_count (mongoc_collection_t *collection,
3434
<tr><td><p>query</p></td><td><p>A <code xref="bson:bson_t">bson_t</code> containing the query.</p></td></tr>
3535
<tr><td><p>skip</p></td><td><p>A int64_t, zero to ignore.</p></td></tr>
3636
<tr><td><p>limit</p></td><td><p>A int64_t, zero to ignore.</p></td></tr>
37-
<tr><td><p>read_prefs</p></td><td><p>A <code xref="mongoc_read_prefs_t">mongoc_read_prefs_t</code> or NULL.</p></td></tr>
37+
<tr><td><p>read_prefs</p></td><td><p>A <code xref="mongoc_read_prefs_t">mongoc_read_prefs_t</code> or <code>NULL</code>.</p></td></tr>
3838
<tr><td><p>error</p></td><td><p>An optional location for a <code xref="bson:bson_error_t">bson_error_t</code> or <code>NULL</code>.</p></td></tr>
3939
</table>
4040
</section>

doc/mongoc_collection_count_with_opts.page

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ mongoc_collection_count_with_opts (mongoc_collection_t *collection,
3535
<tr><td><p>query</p></td><td><p>A <code xref="bson:bson_t">bson_t</code> containing the query.</p></td></tr>
3636
<tr><td><p>skip</p></td><td><p>A int64_t, zero to ignore.</p></td></tr>
3737
<tr><td><p>limit</p></td><td><p>A int64_t, zero to ignore.</p></td></tr>
38-
<tr><td><p>opts</p></td><td><p>A <code xref="bson:bson_t">bson_t</code>, NULL to ignore.</p></td></tr>
39-
<tr><td><p>read_prefs</p></td><td><p>A <code xref="mongoc_read_prefs_t">mongoc_read_prefs_t</code> or NULL.</p></td></tr>
38+
<tr><td><p>opts</p></td><td><p>A <code xref="bson:bson_t">bson_t</code>, <code>NULL</code> to ignore.</p></td></tr>
39+
<tr><td><p>read_prefs</p></td><td><p>A <code xref="mongoc_read_prefs_t">mongoc_read_prefs_t</code> or <code>NULL</code>.</p></td></tr>
4040
<tr><td><p>error</p></td><td><p>An optional location for a <code xref="bson:bson_error_t">bson_error_t</code> or <code>NULL</code>.</p></td></tr>
4141
</table>
4242
</section>

doc/mongoc_collection_create_bulk_operation.page

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ mongoc_collection_create_bulk_operation (
3030
<table>
3131
<tr><td><p>collection</p></td><td><p>A <code xref="mongoc_collection_t">mongoc_collection_t</code>.</p></td></tr>
3232
<tr><td><p>ordered</p></td><td><p>If the operations must be performed in order.</p></td></tr>
33-
<tr><td><p>write_concern</p></td><td><p>An optional <code xref="mongoc_write_concern_t">mongoc_write_concern_t</code> or NULL.</p></td></tr>
33+
<tr><td><p>write_concern</p></td><td><p>An optional <code xref="mongoc_write_concern_t">mongoc_write_concern_t</code> or <code>NULL</code>.</p></td></tr>
3434
</table>
3535
</section>
3636

@@ -40,7 +40,7 @@ mongoc_collection_create_bulk_operation (
4040
<p>After calling <code xref="mongoc_bulk_operation_execute">mongoc_bulk_operation_execute()</code> the commands will be executed in as large as batches as reasonable by the client.</p>
4141
<p>If <code>ordered</code> is true, then processing will stop at the first error.</p>
4242
<p>If <code>ordered</code> is not true, then the bulk operation will attempt to continue processing even after the first failure.</p>
43-
<p><code>write_concern</code> contains the write concern for all operations in the bulk operation. If NULL, the collection's write concern is used. The global default is acknowledged writes: MONGOC_WRITE_CONCERN_W_DEFAULT.</p>
43+
<p><code>write_concern</code> contains the write concern for all operations in the bulk operation. If <code>NULL</code>, the collection's write concern is used. The global default is acknowledged writes: MONGOC_WRITE_CONCERN_W_DEFAULT.</p>
4444
</section>
4545

4646
<section id="errors">

doc/mongoc_collection_delete.page

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ mongoc_collection_delete (mongoc_collection_t *collection,
3434
<tr><td><p>collection</p></td><td><p>A <code xref="mongoc_collection_t">mongoc_collection_t</code>.</p></td></tr>
3535
<tr><td><p>flags</p></td><td><p>A mongoc_delete_flags_t.</p></td></tr>
3636
<tr><td><p>selector</p></td><td><p>A <code xref="bson:bson_t">bson_t</code> containing the query to match documents.</p></td></tr>
37-
<tr><td><p>write_concern</p></td><td><p>A <code xref="mongoc_write_concern_t">mongoc_write_concern_t</code> or NULL.</p></td></tr>
37+
<tr><td><p>write_concern</p></td><td><p>A <code xref="mongoc_write_concern_t">mongoc_write_concern_t</code> or <code>NULL</code>.</p></td></tr>
3838
<tr><td><p>error</p></td><td><p>An optional location for a <code xref="bson:bson_error_t">bson_error_t</code> or <code>NULL</code>.</p></td></tr>
3939
</table>
4040
</section>

doc/mongoc_collection_find.page

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ mongoc_collection_find (mongoc_collection_t *collection,
3838
<tr><td><p>limit</p></td><td><p>A uint32_t of max number of documents to return or 0.</p></td></tr>
3939
<tr><td><p>batch_size</p></td><td><p>A uint32_t containing batch size of document result sets or 0 for default. Default is 100.</p></td></tr>
4040
<tr><td><p>query</p></td><td><p>A <code xref="bson:bson_t">bson_t</code> containing the query and options to execute.</p></td></tr>
41-
<tr><td><p>fields</p></td><td><p>A <code xref="bson:bson_t">bson_t</code> containing fields to return or NULL.</p></td></tr>
42-
<tr><td><p>read_prefs</p></td><td><p>A <code xref="mongoc_read_prefs_t">mongoc_read_prefs_t</code> or NULL for default read preferences.</p></td></tr>
41+
<tr><td><p>fields</p></td><td><p>A <code xref="bson:bson_t">bson_t</code> containing fields to return or <code>NULL</code>.</p></td></tr>
42+
<tr><td><p>read_prefs</p></td><td><p>A <code xref="mongoc_read_prefs_t">mongoc_read_prefs_t</code> or <code>NULL</code> for default read preferences.</p></td></tr>
4343
</table>
4444
</section>
4545

@@ -51,7 +51,7 @@ mongoc_collection_find (mongoc_collection_t *collection,
5151

5252
<section id="return">
5353
<title>Returns</title>
54-
<p>A newly allocated <code xref="mongoc_cursor_t">mongoc_cursor_t</code> that should be freed with <code xref="mongoc_cursor_destroy">mongoc_cursor_destroy()</code> when no longer in use. If invalid parameters are supplied, NULL may be returned.</p>
54+
<p>A newly allocated <code xref="mongoc_cursor_t">mongoc_cursor_t</code> that should be freed with <code xref="mongoc_cursor_destroy">mongoc_cursor_destroy()</code> when no longer in use. If invalid parameters are supplied, <code>NULL</code> may be returned.</p>
5555
<note style="warning"><p>Failure to handle the result of this function is a programming error.</p></note>
5656
</section>
5757

doc/mongoc_collection_find_and_modify.page

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ mongoc_collection_find_and_modify (mongoc_collection_t *collection,
3131
<tr><td><p>query</p></td><td><p>A <code xref="bson:bson_t">bson_t</code> containing the query to locate target document(s).</p></td></tr>
3232
<tr><td><p>sort</p></td><td><p>A <code xref="bson:bson_t">bson_t</code> containing the sort order for <code>query</code>.</p></td></tr>
3333
<tr><td><p>update</p></td><td><p>A <code xref="bson:bson_t">bson_t</code> containing an update spec.</p></td></tr>
34-
<tr><td><p>fields</p></td><td><p>An optional <code xref="bson:bson_t">bson_t</code> containing the fields to return or NULL.</p></td></tr>
34+
<tr><td><p>fields</p></td><td><p>An optional <code xref="bson:bson_t">bson_t</code> containing the fields to return or <code>NULL</code>.</p></td></tr>
3535
<tr><td><p>_remove</p></td><td><p>If the matching documents should be removed.</p></td></tr>
3636
<tr><td><p>upsert</p></td><td><p>If an upsert should be performed.</p></td></tr>
3737
<tr><td><p>_new</p></td><td><p>If the new version of the document should be returned.</p></td></tr>
38-
<tr><td><p>reply</p></td><td><p>An optional location for a <code xref="bson:bson_t">bson_t</code> that will be initialized with the result or NULL.</p></td></tr>
38+
<tr><td><p>reply</p></td><td><p>An optional location for a <code xref="bson:bson_t">bson_t</code> that will be initialized with the result or <code>NULL</code>.</p></td></tr>
3939
<tr><td><p>error</p></td><td><p>An optional location for a <code xref="bson:bson_error_t">bson_error_t</code> or <code>NULL</code>.</p></td></tr>
4040
</table>
4141
</section>

0 commit comments

Comments
 (0)