Skip to content

Commit 00f9394

Browse files
Merge pull request #2344 from Scrip7/patch-1
docs(guards): resolve confusion in the hint
2 parents 94106fe + 40580a4 commit 00f9394

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/guards.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Guards have a **single responsibility**. They determine whether a given request
88

99
But middleware, by its nature, is dumb. It doesn't know which handler will be executed after calling the `next()` function. On the other hand, **Guards** have access to the `ExecutionContext` instance, and thus know exactly what's going to be executed next. They're designed, much like exception filters, pipes, and interceptors, to let you interpose processing logic at exactly the right point in the request/response cycle, and to do so declaratively. This helps keep your code DRY and declarative.
1010

11-
> info **Hint** Guards are executed **after** each middleware, but **before** any interceptor or pipe.
11+
> info **Hint** Guards are executed **after** all middleware, but **before** any interceptor or pipe.
1212
1313
#### Authorization guard
1414

0 commit comments

Comments
 (0)