Skip to content

Commit debb5d4

Browse files
authored
rename example to 'Snapshot Query Example 1' (#1151)
CDRIVER-4295
1 parent b464a5f commit debb5d4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/libmongoc/tests/test-mongoc-sample-commands.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2556,7 +2556,7 @@ accumulate_adoptable_count (const mongoc_client_session_t *cs,
25562556
"{",
25572557
"$match",
25582558
"{",
2559-
"adoptable",
2559+
"adoptable",
25602560
BCON_BOOL (true),
25612561
"}",
25622562
"}",
@@ -2603,7 +2603,7 @@ accumulate_adoptable_count (const mongoc_client_session_t *cs,
26032603
static void
26042604
test_example_59 (mongoc_database_t *db)
26052605
{
2606-
/* Start Example 59 */
2606+
/* Start Snapshot Query Example 1 */
26072607
mongoc_client_t *client = NULL;
26082608
mongoc_client_session_t *cs = NULL;
26092609
mongoc_collection_t *cats_collection = NULL;
@@ -2659,21 +2659,21 @@ test_example_59 (mongoc_database_t *db)
26592659

26602660
printf ("there are %" PRId64 " adoptable pets\n", adoptable_pets_count);
26612661

2662-
/* End Example 59 */
2662+
/* End Snapshot Query Example 1 */
26632663

26642664
if (adoptable_pets_count != 2) {
26652665
MONGOC_ERROR (
26662666
"there should be exatly 2 adoptable_pets_count, found: %" PRId64,
26672667
adoptable_pets_count);
26682668
}
26692669

2670-
/* Start Example 59 Post */
2670+
/* Start Snapshot Query Example 1 Post */
26712671
cleanup:
26722672
mongoc_collection_destroy (dogs_collection);
26732673
mongoc_collection_destroy (cats_collection);
26742674
mongoc_client_session_destroy (cs);
26752675
mongoc_client_destroy (client);
2676-
/* End Example 59 Post */
2676+
/* End Snapshot Query Example 1 Post */
26772677
}
26782678

26792679
/* clang-format off */

0 commit comments

Comments
 (0)