summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-27 20:04:23 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-27 20:04:23 +0000
commitb89299260ee0e70473cf43a14264f14776f8d95f (patch)
treef740525f541615924fe5873288f5f42c2611d7ab /parse.y
parent22b955d9bff9f736af9e81ca5e49bad6608cb987 (diff)
* parse.y (singleton): typo fixed (ruby-bugs-ja PR#562)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.y b/parse.y
index c292709..5fd8fcc 100644
--- a/parse.y
+++ b/parse.y
@@ -2327,7 +2327,7 @@ singleton : var_ref
| '(' {lex_state = EXPR_BEG;} expr opt_nl ')'
{
if ($3 == 0) {
- yyerror("can't define single method for ().");
+ yyerror("can't define singleton method for ().");
}
else {
switch (nd_type($3)) {
@@ -2339,7 +2339,7 @@ singleton : var_ref
case NODE_LIT:
case NODE_ARRAY:
case NODE_ZARRAY:
- yyerror("can't define single method for literals");
+ yyerror("can't define singleton method for literals");
default:
value_expr($3);
break;