diff --git a/lib/document.js b/lib/document.js index 4c8f6995b9b..eaadeb76d68 100644 --- a/lib/document.js +++ b/lib/document.js @@ -1975,7 +1975,7 @@ Document.prototype.$__validate = function(callback) { * } * * @param {Array|string} pathsToValidate only validate the given paths - * @return {MongooseError|undefined} MongooseError if there are errors during validation, or undefined if there is no error. + * @return {ValidationError|undefined} ValidationError if there are errors during validation, or undefined if there is no error. * @api public */