diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2021-11-17 23:38:19 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2021-11-17 23:38:19 +0900 |
commit | 5a7b4dba26e29f5942265267688625b5be174064 (patch) | |
tree | cabf8212ceee72e91480e001b532f8a89cc357a2 /node.c | |
parent | c400165afaca06dcff06d980c8f7fe46ff3904e4 (diff) |
node.c (dump_node): trivial refactoring
Diffstat (limited to 'node.c')
-rw-r--r-- | node.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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; |