Skip to content

Commit

Permalink
docs: add missing fn name for docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Dec 28, 2017
1 parent efa7339 commit a50a050
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -487,10 +487,11 @@ Document.prototype.update = function update() {
* @param {Any} val the value to set
* @param {Schema|String|Number|Buffer|*} [type] optionally specify a type for "on-the-fly" attributes
* @param {Object} [options] optionally specify options that modify the behavior of the set
* @
* @api public
*/

Document.prototype.$set = function(path, val, type, options) {
Document.prototype.$set = function $set(path, val, type, options) {
if (type && utils.getFunctionName(type.constructor) === 'Object') {
options = type;
type = undefined;
Expand Down

0 comments on commit a50a050

Please sign in to comment.