Skip to content

Commit

Permalink
Fix: broken link in document.js
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
joostdecock authored Apr 29, 2021
1 parent e961cb7 commit 3fa78b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ Document.prototype.updateOne = function updateOne(doc, options, callback) {
*
* ####Valid options:
*
* - same as in [Model.replaceOne](#model_Model.replaceOne)
* - same as in [Model.replaceOne](https://mongoosejs.com/docs/api/model.html#model_Model.replaceOne)
*
* @see Model.replaceOne #model_Model.replaceOne
* @param {Object} doc
Expand Down

0 comments on commit 3fa78b6

Please sign in to comment.