Skip to content

Commit 4fee65c

Browse files
committed
chore(): remove redundant wordings
1 parent 90d1519 commit 4fee65c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/pipes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ A pipe is a class annotated with the `@Injectable()` decorator, which implements
99
Pipes have two typical use cases:
1010

1111
- **transformation**: transform input data to the desired form (e.g., from string to integer)
12-
- **validation**: evaluate input data and if valid, simply pass it through unchanged; otherwise, throw an exception when the data is incorrect
12+
- **validation**: evaluate input data and if valid, simply pass it through unchanged; otherwise, throw an exception
1313

1414
In both cases, pipes operate on the `arguments` being processed by a <a href="controllers#route-parameters">controller route handler</a>. Nest interposes a pipe just before a method is invoked, and the pipe receives the arguments destined for the method and operates on them. Any transformation or validation operation takes place at that time, after which the route handler is invoked with any (potentially) transformed arguments.
1515

0 commit comments

Comments
 (0)