Skip to content

Commit

Permalink
fixed example id values
Browse files Browse the repository at this point in the history
  • Loading branch information
lpizzinidev committed Feb 2, 2023
1 parent 90f45cd commit 9e10a5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -799,10 +799,10 @@ Mongoose.prototype.connections;
* #### Example:
*
* const mongoose = require('mongoose');
* mongoose.createConnection(); // id `0`, `nextConnectionId` becomes `1`
* mongoose.createConnection(); // id `1`, `nextConnectionId` becomes `2`
* mongoose.connections[0].destroy() // Removes connection with id `0`
* mongoose.createConnection(); // id `2`, `nextConnectionId` becomes `3`
* mongoose.connections[0].destroy() // Removes connection with id `1`
* mongoose.createConnection(); // id `3`, `nextConnectionId` becomes `4`
*
* @memberOf Mongoose
* @instance
Expand Down

0 comments on commit 9e10a5e

Please sign in to comment.