From da9bd7a460e24da88c38be4276e6a1362718b5b8 Mon Sep 17 00:00:00 2001 From: yui-knk Date: Thu, 7 Jun 2018 23:18:16 +0000 Subject: node.c: Fix format of NODE_OP_ASGN1 and NODE_OP_ASGN2 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- node.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'node.c') diff --git a/node.c b/node.c index c5826e70f9..b0cf67b041 100644 --- a/node.c +++ b/node.c @@ -428,7 +428,7 @@ dump_node(VALUE buf, VALUE indent, int comment, const NODE * node) case NODE_OP_ASGN1: ANN("array assignment with operator"); - ANN("format: [nd_value] [ [nd_args->nd_body] ] [nd_vid]= [nd_args->nd_head]"); + ANN("format: [nd_recv] [ [nd_args->nd_head] ] [nd_mid]= [nd_args->nd_body]"); ANN("example: ary[1] += foo"); F_NODE(nd_recv, "receiver"); F_ID(nd_mid, "operator"); @@ -439,7 +439,7 @@ dump_node(VALUE buf, VALUE indent, int comment, const NODE * node) case NODE_OP_ASGN2: ANN("attr assignment with operator"); - ANN("format: [nd_value].[attr] [nd_next->nd_mid]= [nd_value]"); + ANN("format: [nd_recv].[attr] [nd_next->nd_mid]= [nd_value]"); ANN(" where [attr]: [nd_next->nd_vid]"); ANN("example: struct.field += foo"); F_NODE(nd_recv, "receiver"); -- cgit v1.2.1