ruby-changes:69785
From: Yusuke <ko1@a...>
Date: Wed, 17 Nov 2021 23:57:14 +0900 (JST)
Subject: [ruby-changes:69785] 5a7b4dba26 (master): node.c (dump_node): trivial refactoring
https://git.ruby-lang.org/ruby.git/commit/?id=5a7b4dba26 From 5a7b4dba26e29f5942265267688625b5be174064 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Wed, 17 Nov 2021 23:38:19 +0900 Subject: node.c (dump_node): trivial refactoring --- node.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/node.c b/node.c index cd1c3f0b0ab..548e4f9fe1f 100644 --- a/node.c +++ b/node.c @@ -677,10 +677,8 @@ dump_node(VALUE buf, VALUE indent, int comment, const NODE * node) https://github.com/ruby/ruby/blob/trunk/node.c#L677 ANN("format: $[nd_nth]"); ANN("example: $&, $`, $', $+"); F_CUSTOM1(nd_nth, "variable") { - char name[3]; - name[0] = '$'; + char name[3] = "$ "; name[1] = (char)node->nd_nth; - name[2] = '\0'; A(name); } return; -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/