aboutsummaryrefslogtreecommitdiffstats
path: root/node.c
diff options
context:
space:
mode:
Diffstat (limited to 'node.c')
-rw-r--r--node.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/node.c b/node.c
index d1f1b70832..5912bc4752 100644
--- a/node.c
+++ b/node.c
@@ -866,6 +866,9 @@ dump_node(VALUE buf, VALUE indent, int comment, NODE *node)
else {
D_NODE_HEADER(node);
ANN("method parameters (cont'd)");
+ ANN("\"init arguments (m)\" evaluates multiple assignments before rest argument");
+ ANN("\"init arguments (p)\" evaluates multiple assignments after rest argument");
+ ANN("example: def foo((m1, m2), *r, (p1, p2))");
F_NODE(nd_1st, "init arguments (m)");
LAST_NODE;
F_NODE(nd_2nd, "init arguments (p)");