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:
parent
58d01fc1b7
commit
035db929d1
1 changed files with 2 additions and 2 deletions
4
parse.y
4
parse.y
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue