From 49f5c82267deb029510691d82c446b272a0218dd Mon Sep 17 00:00:00 2001 From: Mrudhul Guda Date: Fri, 20 Dec 2024 23:35:31 +0530 Subject: [PATCH] Fixed explanation toggle in streams lambdas --- docs/langdives/Java/StreamsLambdas.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/langdives/Java/StreamsLambdas.md b/docs/langdives/Java/StreamsLambdas.md index 702b21b..1c727c1 100644 --- a/docs/langdives/Java/StreamsLambdas.md +++ b/docs/langdives/Java/StreamsLambdas.md @@ -53,9 +53,9 @@ A method reference is a shorthand way of writing a lambda when a method already names.forEach(System.out::println); // Method reference ``` - ???+ info "Explanation" - - `System.out::println` is a **method reference** to the `println()` method of `System.out`. - - It behaves just like the lambda `name -> System.out.println(name)` but is cleaner. +???+ info "Explanation" + - `System.out::println` is a **method reference** to the `println()` method of `System.out`. + - It behaves just like the lambda `name -> System.out.println(name)` but is cleaner. Use **method references** when: