Skip to content

Commit 95bcf2d

Browse files
committed
Update lambda_expression.java
1 parent 2933cd4 commit 95bcf2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dynamicjava/src/koala/dynamicjava/parser/lambda_expression.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
public class LambdaExpression extends PrimaryExpression {
66
private Option<List<FormalParameter>> typedParams;
77
private Option<List<String>> inferredParams;
8-
// A lambda expression can have either a block or an expression as its body.
8+
// A lambda expression have either the block as its body, the body could also be an expression, refer to Java 8 documentation for details
99
private Option<BlockStatement> blockBody;
1010
private Option<Expression> exprBody;
1111
public LambdaExpression(List<FormalParameter> typedParams,

0 commit comments

Comments
 (0)