Skip to content

Commit 060502e

Browse files
Merge pull request #2518 from skoropad/patch-2
docs(guards): update text about value provided
2 parents 563ce4a + e72a87f commit 060502e

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
@@ -98,7 +98,7 @@ export class CatsController {}
9898

9999
> info **Hint** The `@UseGuards()` decorator is imported from the `@nestjs/common` package.
100100
101-
Above, we passed the `RolesGuard` type (instead of an instance), leaving responsibility for instantiation to the framework and enabling dependency injection. As with pipes and exception filters, we can also pass an in-place instance:
101+
Above, we passed the `RolesGuard` class (instead of an instance), leaving responsibility for instantiation to the framework and enabling dependency injection. As with pipes and exception filters, we can also pass an in-place instance:
102102

103103
```typescript
104104
@@filename()

0 commit comments

Comments
 (0)