ruby-changes:49424
From: nobu <ko1@a...>
Date: Tue, 2 Jan 2018 13:24:37 +0900 (JST)
Subject: [ruby-changes:49424] nobu:r61540 (trunk): parse.y: fix typo
nobu 2018-01-02 13:24:32 +0900 (Tue, 02 Jan 2018) New Revision: 61540 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61540 Log: parse.y: fix typo * parse.y (singleton): fix typo, show the expression. Modified files: trunk/parse.y Index: parse.y =================================================================== --- parse.y (revision 61539) +++ parse.y (revision 61540) @@ -4962,7 +4962,7 @@ singleton : var_ref https://github.com/ruby/ruby/blob/trunk/parse.y#L4962 { /*%%%*/ if ($3 == 0) { - yyerror1(&@2, "can't define singleton method for ()."); + yyerror1(&@3, "can't define singleton method for ()."); } else { switch (nd_type($3)) { @@ -4974,7 +4974,7 @@ singleton : var_ref https://github.com/ruby/ruby/blob/trunk/parse.y#L4974 case NODE_LIT: case NODE_ARRAY: case NODE_ZARRAY: - yyerror1(&@2, "can't define singleton method for literals"); + yyerror1(&@3, "can't define singleton method for literals"); break; default: value_expr($3); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/