Skip to content
Browse files

CDRIVER-167 - Clarification on mongo_connect example in tutorial

MONGO_CONN_SUCCESS is never used for an error return and the tutorial was wrong, it is now fixed.
  • Loading branch information...
1 parent dfb15c7 commit 8ae2c57e95a3939850a77fb9329c129b2bcfcd1a @gjmurakami-10gen gjmurakami-10gen committed
Showing with 1 addition and 2 deletions.
  1. +0 −1 docs/source/sphinx/source/tutorial.rst
  2. +1 −1 src/bcon.h
View
1 docs/source/sphinx/source/tutorial.rst
@@ -64,7 +64,6 @@ Let's start by that connects to the database:
if( status != MONGO_OK ) {
switch ( conn->err ) {
- case MONGO_CONN_SUCCESS: printf( "connection succeeded\n" ); break;
case MONGO_CONN_NO_SOCKET: printf( "no socket\n" ); return 1;
case MONGO_CONN_FAIL: printf( "connection failed\n" ); return 1;
case MONGO_CONN_NOT_MASTER: printf( "not master\n" ); return 1;
View
2 src/bcon.h
@@ -36,7 +36,7 @@ MONGO_EXTERN_C_START
* --------
* BCON provides for JSON-like (or BSON-like) initializers in C.
* Without this, BSON must be constructed by procedural coding via explicit function calls.
- * With this, you now have convenient data-driven definition of BSON documents.
+ * With this, you now have concise, readable, and maintainable data-driven definition of BSON documents.
* Here are a couple of introductory examples.
*
* bcon hello[] = { "hello", "world", "." };

0 comments on commit 8ae2c57

Please sign in to comment.
Something went wrong with that request. Please try again.