Skip to content

Commit f3ed313

Browse files
authored
Merge pull request #8175 from anaethoss/patch-1
fix example typo for Schema.prototype.plugin()
2 parents 97c8114 + d9c91cb commit f3ed313

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/schema.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1378,7 +1378,7 @@ Schema.prototype.post = function(name) {
13781378
*
13791379
* const s = new Schema({ name: String });
13801380
* s.plugin(schema => console.log(schema.path('name').path));
1381-
* mongoose.model('Test', schema); // Prints 'name'
1381+
* mongoose.model('Test', s); // Prints 'name'
13821382
*
13831383
* @param {Function} plugin callback
13841384
* @param {Object} [opts]

0 commit comments

Comments
 (0)