Skip to content

Commit

Permalink
docs; fix bad connection string example
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Nov 5, 2015
1 parent a55fba7 commit 4023f12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ Mongoose.prototype.createConnection = function(uri, options) {
* mongoose.connect('mongodb://user:pass@localhost:port/database');
*
* // replica sets
* var uri = 'mongodb://user:pass@localhost:port/database,mongodb://anotherhost:port,mongodb://yetanother:port';
* var uri = 'mongodb://user:pass@localhost:port,anotherhost:port,yetanother:port/mydatabase';
* mongoose.connect(uri);
*
* // with options
Expand Down

0 comments on commit 4023f12

Please sign in to comment.