Skip to content

Commit

Permalink
style(model): fix typo in "$__updateConnection" docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hasezoey committed Apr 8, 2024
1 parent b729474 commit 4071fd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -4898,7 +4898,7 @@ Model.compile = function compile(name, schema, collectionName, connection, base)

/**
* Update this model to use the new connection, including updating all internal
* references and creating a new `COllection` instance using the new connection.
* references and creating a new `Collection` instance using the new connection.
* Not for external use, only used by `setDriver()` to ensure that you can still
* call `setDriver()` after creating a model using `mongoose.model()`.
*
Expand Down

0 comments on commit 4071fd7

Please sign in to comment.