summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2023-08-29 21:32:34 +0900
committerYuichiro Kaneko <spiketeika@gmail.com>2023-08-30 12:47:09 +0900
commit2e648bfee4178399170437156af80d5f64ee96b9 (patch)
treec3e4f962b5a4652ab0a56220397b7cba79dbef6d /parse.y
parenta83152d4dbef7be51543e6c3d7a55fabb4917248 (diff)
[DOC] Detailed explanation when one line pattern matching is a void value expression
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/8320
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index ab416540ea..36ba905db1 100644
--- a/parse.y
+++ b/parse.y
@@ -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: