diff --git a/lib/schematype.js b/lib/schematype.js index 709913a8f8a..76664b77529 100644 --- a/lib/schematype.js +++ b/lib/schematype.js @@ -810,8 +810,8 @@ SchemaType.prototype.get = function(fn) { * // adding many validators at a time * * const many = [ - * { validator: validator, msg: 'uh oh' } - * , { validator: anotherValidator, msg: 'failed' } + * { validator: validator, message: 'uh oh' } + * , { validator: anotherValidator, message: 'failed' } * ] * new Schema({ name: { type: String, validate: many }}); *