Skip to content

Commit c519b9b

Browse files
Nikita Savchenkombroadst
Nikita Savchenko
authored andcommitted
fix(jsdoc): mark db.collection callback as optional + typo fix (#1658)
* fix(jsdoc): mark db.collection callback as optional * fix(jsdoc): typo
1 parent 077b876 commit c519b9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/db.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ var collectionKeys = [
393393
];
394394

395395
/**
396-
* Fetch a specific collection (containing the actual collection information). If the application does not use strict mode you can
396+
* Fetch a specific collection (containing the actual collection information). If the application does not use strict mode you
397397
* can use it without a callback in the following way: `var collection = db.collection('mycollection');`
398398
*
399399
* @method
@@ -409,7 +409,7 @@ var collectionKeys = [
409409
* @param {boolean} [options.strict=false] Returns an error if the collection does not exist
410410
* @param {object} [options.readConcern=null] Specify a read concern for the collection. (only MongoDB 3.2 or higher supported)
411411
* @param {object} [options.readConcern.level='local'] Specify a read concern level for the collection operations, one of [local|majority]. (only MongoDB 3.2 or higher supported)
412-
* @param {Db~collectionResultCallback} callback The collection result callback
412+
* @param {Db~collectionResultCallback} [callback] The collection result callback
413413
* @return {Collection} return the new Collection instance if not in strict mode
414414
*/
415415
Db.prototype.collection = function(name, options, callback) {

0 commit comments

Comments
 (0)