1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

node.c (dump_node): trivial refactoring

This commit is contained in:
Yusuke Endoh 2021-11-17 23:38:19 +09:00
parent c400165afa
commit 5a7b4dba26

4
node.c
View file

@ -677,10 +677,8 @@ dump_node(VALUE buf, VALUE indent, int comment, const NODE * node)
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;