ruby-changes:49154
From: mame <ko1@a...>
Date: Fri, 15 Dec 2017 14:55:16 +0900 (JST)
Subject: [ruby-changes:49154] mame:r61270 (trunk): node.c: fix typos
mame 2017-12-15 14:55:08 +0900 (Fri, 15 Dec 2017) New Revision: 61270 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61270 Log: node.c: fix typos Modified files: trunk/node.c Index: node.c =================================================================== --- node.c (revision 61269) +++ node.c (revision 61270) @@ -227,11 +227,11 @@ dump_node(VALUE buf, VALUE indent, int c https://github.com/ruby/ruby/blob/trunk/node.c#L227 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 c https://github.com/ruby/ruby/blob/trunk/node.c#L271 return; case NODE_BREAK: - ANN("for statement"); + ANN("break statement"); ANN("format: break [nd_stts]"); ANN("example: break 1"); goto jump; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/