Skip to content

Commit 8c40a59

Browse files
Wording and tweaks from PR comments
Co-authored-by: Kevin Albertson <[email protected]>
1 parent 93644fc commit 8c40a59

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

docs/how-to/communicate.example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ amongoc_box after_hello(amongoc_box state_ptr, amongoc_status*, amongoc_box resp
2626
bson_view resp = bson_view_from(amongoc_box_cast(bson_doc, resp_data));
2727
// Just print the response message
2828
fprintf(stdout, "Got response: ");
29-
bson_write_repr(stderr, resp);
29+
bson_write_repr(stdout, resp);
3030
fputs("\n", stdout);
3131
amongoc_box_destroy(resp_data);
3232
return amongoc_nil;

docs/learn/read.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ the server:
122122
.. literalinclude:: read.example.c
123123
:caption: Set up the Collection
124124
:start-at: Create a new collection handle
125-
:end-at: }
125+
:end-before: Initiate a read operation.
126126
:lineno-match:
127127

128128
`amongoc_collection_new` does not actually communicate with the server: It only

docs/ref/status.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ Functions & Macros
178178
:param MsgVar: This argument should be a plain identifier, which will be declared within
179179
the scope of the statement as the :term:`C string` for the status.
180180
:param StatusVar: If provided, a variable of type `amongoc_status` will be declared within
181-
the statment scope that captures the value of the ``Status`` argument.
181+
the statement scope that captures the value of the ``Status`` argument.
182182

183183
.. hint::
184184

@@ -229,7 +229,7 @@ Status Categories
229229
return |S| without inspecting `buf`.
230230
2. If the message |M| needs to be dynamically generated and `buf` is not
231231
null, generate the message string in `buf`, ensuring that `buf` contains
232-
a nul terminator at :expr:`buf[buflen-1]` (use of ``snprintf`` is
232+
a nul terminator. The written length with nul terminator must not exceed :expr:`buflen` (use of ``snprintf`` is
233233
recommended). Return `buf`.
234234
3. Otherwise, return a fallback message string or a null pointer.
235235

src/bson/format.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ struct bson_writer {
185185
void write_value(bool b) { write("{}", b); }
186186
void write_value(std::int32_t i) { write("{}:i32", i); }
187187
void write_value(std::int64_t i) { write("{}:i64", i); }
188-
void write_value(std::uint64_t i) { write("{}:u64", i); }
189188
void write_value(double i) { write("{}:f64", i); }
190189
void write_value(bson::null) { write("null"); }
191190
void write_value(bson::undefined) { write("undefined"); }

0 commit comments

Comments
 (0)