[前][次][番号順一覧][スレッド一覧]

ruby-changes:40010

From: nobu <ko1@a...>
Date: Fri, 9 Oct 2015 15:44:26 +0900 (JST)
Subject: [ruby-changes:40010] nobu:r52091 (trunk): node.c: fix comments [ci skip]

nobu	2015-10-09 15:44:22 +0900 (Fri, 09 Oct 2015)

  New Revision: 52091

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52091

  Log:
    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.

  Modified files:
    trunk/node.c
Index: node.c
===================================================================
--- node.c	(revision 52090)
+++ node.c	(revision 52091)
@@ -587,10 +587,10 @@ dump_node(VALUE buf, VALUE indent, int c https://github.com/ruby/ruby/blob/trunk/node.c#L587
 	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:

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]