Skip to content

Commit 20b1b96

Browse files
Merge pull request #3082 from LhonRafaat/fix-scopes-typo
docs(injection scopes): fix typo
2 parents fd1d769 + 8153497 commit 20b1b96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/fundamentals/provider-scopes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Similarly, for [custom providers](/fundamentals/custom-providers), set the `scop
4848

4949
> info **Hint** Import the `Scope` enum from `@nestjs/common`
5050
51-
Singleton scope is used by default, and need not be declared. If you do want to declare a provider as singleton scoped, use the `Scope.DEFAULT` value for the `scope` property.
51+
Singleton scope is used by default and does not need be declared. If you do want to declare a provider as singleton scoped, use the `Scope.DEFAULT` value for the `scope` property.
5252

5353
> warning **Notice** Websocket Gateways should not use request-scoped providers because they must act as singletons. Each gateway encapsulates a real socket and cannot be instantiated multiple times. The limitation also applies to some other providers, like [_Passport strategies_](../security/authentication#request-scoped-strategies) or _Cron controllers_.
5454

0 commit comments

Comments
 (0)