1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

parse.y: fix typo

* parse.y (singleton): fix typo, show the expression.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2018-01-02 04:24:32 +00:00
parent 58d01fc1b7
commit 035db929d1

View file

@ -4962,7 +4962,7 @@ singleton : var_ref
{
/*%%%*/
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
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);