diff --git a/lib/schema.js b/lib/schema.js index 249d8acee25..b3670d97b8b 100644 --- a/lib/schema.js +++ b/lib/schema.js @@ -1378,7 +1378,7 @@ Schema.prototype.post = function(name) { * * const s = new Schema({ name: String }); * s.plugin(schema => console.log(schema.path('name').path)); - * mongoose.model('Test', schema); // Prints 'name' + * mongoose.model('Test', s); // Prints 'name' * * @param {Function} plugin callback * @param {Object} [opts]