Skip to content

Commit a11c05e

Browse files
committed
docs(middleware): some cleanup re: #5866
1 parent f4c06e5 commit a11c05e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/middleware.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ block content
6161
:markdown
6262
The `next()` call does **not** stop the rest of the code in your middleware function from executing. Use
6363
[the early `return` pattern](https://www.bennadel.com/blog/2323-use-a-return-statement-when-invoking-callbacks-especially-in-a-guard-statement.htm)
64-
if you want to stop execution when you call `next()`.
64+
to prevent the rest of your middleware function from running when you call `next()`.
6565
:js
6666
var schema = new Schema(..);
6767
schema.pre('save', function(next) {

0 commit comments

Comments
 (0)