summaryrefslogtreecommitdiff
path: root/node.c
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-15 05:55:08 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-15 05:55:08 +0000
commit30930ba0503ce8d22df79082d2b6fcebe8312301 (patch)
tree7a74298ac270203e2ee54a9051a27e708cebc158 /node.c
parente13d347df6369f373e710550388717008d711de9 (diff)
node.c: fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'node.c')
-rw-r--r--node.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/node.c b/node.c
index 95817643af..e3cf8f0d9a 100644
--- a/node.c
+++ b/node.c
@@ -227,11 +227,11 @@ dump_node(VALUE buf, VALUE indent, int comment, NODE *node)
return;
case NODE_WHEN:
- ANN("if statement");
+ ANN("when clause");
ANN("format: when [nd_head]; [nd_body]; (when or else) [nd_next]");
ANN("example: case x; when 1; foo; when 2; bar; else baz; end");
F_NODE(nd_head, "when value");
- F_NODE(nd_body, "when clause");
+ F_NODE(nd_body, "when body");
LAST_NODE;
F_NODE(nd_next, "next when clause");
return;
@@ -271,7 +271,7 @@ dump_node(VALUE buf, VALUE indent, int comment, NODE *node)
return;
case NODE_BREAK:
- ANN("for statement");
+ ANN("break statement");
ANN("format: break [nd_stts]");
ANN("example: break 1");
goto jump;