diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a88929..10eea97 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ * [BUGFIX] `Model.prototype.unlock` was not accepting `cas` argument thus the unlock operation could not succeed * [ADDED] `Instance.prototype.touch` which operates on all reference documents in addition to the main document * [ADDED] new public method `Instance.prototype.getRefDocs` which has been part of private API -* [CHANGED] `Instance.prototype.update` method behaves as one would expect, that is, more or less its syntax sugar for `instance.setData()` followed by `instance.save()`. This also fixes the method design issue which broke update hooks. +* [CHANGED] `Instance.prototype.update` method behaves as one would expect, that is, its syntax sugar for `instance.setData()` followed by `instance.save()`. This also fixes the method design issue which broke update hooks. * [BUGFIX] `storageAdapter` methods should always clone received `options` object as native `couchbase` sdk does not do that and we need to be sure options objects are not shared and mutated between individual operations * [REMOVED] unused `debug` module dependency * [BUGFIX] updated `bluebird` module dependency diff --git a/lib/instance.js b/lib/instance.js index 9e655b5..0a865b9 100644 --- a/lib/instance.js +++ b/lib/instance.js @@ -663,7 +663,7 @@ Instance.prototype.save = Promise.method(function(options) { /** * This is similar to seting data on the instance and then calling {@link Instance#save}, - * (respectively {@link Instance#replace}) however in this case when the operation failes, + * (respectively {@link Instance#replace}) however in this case when the operation fails, * the Model's instance data are restored to the previous state. * * @param {Object} data