diff --git a/API.md b/API.md index e87338a..fe318e5 100644 --- a/API.md +++ b/API.md @@ -684,7 +684,7 @@ We return the [Cursor](#Cursor) that the user can either await dire
  • If options.returnUpdatedDocs is true:
  • diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e68b7a..800440b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [4.0.2] - 2023-05-05 +### Fixed +- Fixed typo in documentation [#32](https://github.com/seald/nedb/pull/36) + ## [4.0.1] - 2023-02-08 ### Fixed - Replace `$stat` from documentation with `$exists` [#32](https://github.com/seald/nedb/pull/32) diff --git a/lib/datastore.js b/lib/datastore.js index 915e842..740abf8 100755 --- a/lib/datastore.js +++ b/lib/datastore.js @@ -1062,7 +1062,7 @@ class Datastore extends EventEmitter { * - If `options.returnUpdatedDocs` is `false`, `null`; * - If `options.returnUpdatedDocs` is `true`: * - If `options.multi` is `false`, the updated document; - * - If `options.multi` is `false`, the array of updated documents. + * - If `options.multi` is `true`, the array of updated documents. * @async */ updateAsync (query, update, options = {}) {