diff --git a/02-lambdas.md b/02-lambdas.md index ab8242e..159bb99 100644 --- a/02-lambdas.md +++ b/02-lambdas.md @@ -198,7 +198,7 @@ Predicate namesStartingWithS = name -> name.startsWith("s"); ### java.util.function.Consumer -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. +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. ```java Consumer messageConsumer = message -> System.out.println(message);