aboutsummaryrefslogtreecommitdiffstats
path: root/node.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-09 06:44:22 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-09 06:44:22 +0000
commitca36deeb35622af5cf269aee9c7ed034d6cf9407 (patch)
treecc6494cc68748460adcdffb72781b27af95aa608 /node.c
parent36185824f7b84a7b8c90f0aa5c61364e1206f860 (diff)
downloadruby-ca36deeb35622af5cf269aee9c7ed034d6cf9407.tar.gz
node.c: fix comments [ci skip]
* node.c (dump_node): fix comments of dynamic string literals, nd_next->nd_head is the interpolation but not a literal string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'node.c')
-rw-r--r--node.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/node.c b/node.c
index f964d55d7a..93f4df9ba2 100644
--- a/node.c
+++ b/node.c
@@ -587,10 +587,10 @@ dump_node(VALUE buf, VALUE indent, int comment, NODE *node)
ANN("format: [nd_lit]");
ANN("example: :\"foo#{ bar }baz\"");
dlit:
- F_LIT(nd_lit, "literal");
- F_NODE(nd_next->nd_head, "preceding string");
+ F_LIT(nd_lit, "preceding string");
+ F_NODE(nd_next->nd_head, "interpolation");
LAST_NODE;
- F_NODE(nd_next->nd_next, "interpolation");
+ F_NODE(nd_next->nd_next, "tailing strings");
break;
case NODE_EVSTR: