Skip to content

Commit 4023f12

Browse files
committedNov 5, 2015
docs; fix bad connection string example
1 parent a55fba7 commit 4023f12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ Mongoose.prototype.createConnection = function(uri, options) {
199199
* mongoose.connect('mongodb://user:pass@localhost:port/database');
200200
*
201201
* // replica sets
202-
* var uri = 'mongodb://user:pass@localhost:port/database,mongodb://anotherhost:port,mongodb://yetanother:port';
202+
* var uri = 'mongodb://user:pass@localhost:port,anotherhost:port,yetanother:port/mydatabase';
203203
* mongoose.connect(uri);
204204
*
205205
* // with options

0 commit comments

Comments
 (0)
Please sign in to comment.