summaryrefslogtreecommitdiff
path: root/node_dump.c
diff options
context:
space:
mode:
authoryui-knk <[email protected]>2024-02-12 13:50:27 +0900
committerYuichiro Kaneko <[email protected]>2024-02-12 14:49:07 +0900
commit93accfdf48d38160a11c2f0f8ed978f4cdbfe3cd ()
treedaa76951816ad0c46f57a9f191c19c20a6e82bcd /node_dump.c
parent697ade7bda5942e372c8d6ba450dd534f0cf186f (diff)
Fix [BUG] unknown node for NODE_ENCODING
It should be `return` instead of `break`, otherwise `[BUG] dump_node: unknown node: NODE_ENCODING` happens.
-rw-r--r--node_dump.c2
1 files changed, 1 insertions, 1 deletions
@@ -1155,7 +1155,7 @@ dump_node(VALUE buf, VALUE indent, int comment, const NODE * node)
ANN("format: [enc]");
ANN("example: __ENCODING__");
F_VALUE(enc, rb_node_encoding_val(node), "enc");
- break;
case NODE_ERROR:
ANN("Broken input recovered by Error Tolerant mode");