From 95581073569a3b6c1e05dc3e1cf5d5cbb2df9833 Mon Sep 17 00:00:00 2001 From: many2many <6168830@qq.com> Date: Thu, 24 Oct 2024 10:05:59 +0800 Subject: [PATCH] fix --- docs/chapter05.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/chapter05.md b/docs/chapter05.md index 407c3d9..0cbf50c 100644 --- a/docs/chapter05.md +++ b/docs/chapter05.md @@ -147,11 +147,13 @@ public interface SimpleFunctionalInterface { Lambda 表达式的一般语法是: -```java -(parameters) -> expression + +> (parameters) -> expression + 或者 -(parameters) -> { statements; } -``` + +> (parameters) -> { statements; } + - `parameters`:这是参数列表,可以是一个或多个参数,参数类型可以省略。 - `->`:这是 Lambda 操作符,将参数部分与 Lambda 体分开。