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

node.c (NODE_HASH): remove wrong default case

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2017-12-15 05:55:10 +00:00
parent d11fbf43c2
commit 641870746f

3
node.c
View file

@ -583,11 +583,10 @@ dump_node(VALUE buf, VALUE indent, int comment, NODE *node)
ANN("format: { [nd_head] }");
ANN("example: { 1 => 2, 3 => 4 }");
}
F_CUSTOM1(nd_alen, "keyword-arguments-or-hash-literal") {
F_CUSTOM1(nd_alen, "keyword arguments or hash literal") {
switch (node->nd_alen) {
case 0: A("0 (keyword argument)"); break;
case 1: A("1 (hash literal)"); break;
default: A_ID(node->nd_alen);
}
}
LAST_NODE;