diff --git a/lib/index.js b/lib/index.js index b3b219c0812..1f7a654c12b 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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