From 5a7b4dba26e29f5942265267688625b5be174064 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh 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(-) (limited to 'node.c') diff --git a/node.c b/node.c index cd1c3f0b0a..548e4f9fe1 100644 --- a/node.c +++ b/node.c @@ -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; -- cgit v1.2.1