[DOC] Detailed explanation when one line pattern matching is a void value expression

This commit is contained in:
yui-knk 2023-08-29 21:32:34 +09:00 committed by Yuichiro Kaneko
parent a83152d4db
commit 2e648bfee4
Notes: git 2023-08-30 03:47:29 +00:00

View File

@ -12114,7 +12114,7 @@ value_expr_check(struct parser_params *p, NODE *node)
if (node->nd_body->nd_body) {
return NULL;
}
/* single line pattern matching */
/* single line pattern matching with "=>" operator */
return void_node ? void_node : node;
case NODE_BLOCK: