Skip to content

Commit 9d4f0ff

Browse files
committed
Fix copy paste is mistake
1 parent ddd0b7f commit 9d4f0ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

02-lambdas.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ Predicate<String> namesStartingWithS = name -> name.startsWith("s");
198198

199199
### java.util.function.Consumer<T>
200200

201-
This functional interface is used for performing actions which does not produce any output. Predicate interface has one method called `accept` which takes a value of type `T` and return nothing i.e. it is void. For example, sending an email with given message.
201+
This functional interface is used for performing actions which does not produce any output. Consumer interface has one method called `accept` which takes a value of type `T` and return nothing i.e. it is void. For example, sending an email with given message.
202202

203203
```java
204204
Consumer<String> messageConsumer = message -> System.out.println(message);

0 commit comments

Comments
 (0)