Skip to content

Commit 563067c

Browse files
authored
Merge pull request #1428 from martin-helmich/docfix/cursor-map-return
Fix Cursor.prototype.map return annotation
2 parents 6616031 + fd0c456 commit 563067c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cursor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ define.classMethod('close', {callback: true, promise:true});
979979
* Map all documents using the provided function
980980
* @method
981981
* @param {function} [transform] The mapping transformation method.
982-
* @return {null}
982+
* @return {Cursor}
983983
*/
984984
Cursor.prototype.map = function(transform) {
985985
this.cursorState.transforms = { doc: transform };

0 commit comments

Comments
 (0)