summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--node_dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/node_dump.c b/node_dump.c
index 5bf9591115..69ab98c883 100644
--- a/node_dump.c
+++ b/node_dump.c
@@ -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;
+ return;
case NODE_ERROR:
ANN("Broken input recovered by Error Tolerant mode");