Skip to content

Commit 3fa78b6

Browse files
authored
Fix: broken link in document.js
This links to an anchor, but the target is on a different page, so this link is broken. I checked the other links to see how to link, but there are three different approaches used throughout the docs: - Relative links: `/docs/api/model.html#model_Model.replaceOne` - http links: `http://mongoosejs.com/docs/api/model.html#model_Model.replaceOne` - https links: `https://mongoosejs.com/docs/api/model.html#model_Model.replaceOne` I opted for the https link (`https://mongoosejs.com/docs/api/model.html#model_Model.replaceOne`) since that seemed like the best choice to me.
1 parent e961cb7 commit 3fa78b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/document.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ Document.prototype.updateOne = function updateOne(doc, options, callback) {
805805
*
806806
* ####Valid options:
807807
*
808-
* - same as in [Model.replaceOne](#model_Model.replaceOne)
808+
* - same as in [Model.replaceOne](https://mongoosejs.com/docs/api/model.html#model_Model.replaceOne)
809809
*
810810
* @see Model.replaceOne #model_Model.replaceOne
811811
* @param {Object} doc

0 commit comments

Comments
 (0)