mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
22b955d9bf
commit
b89299260e
3 changed files with 9 additions and 5 deletions
|
@ -1,3 +1,7 @@
|
|||
Thu Aug 28 05:02:52 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* parse.y (singleton): typo fixed (ruby-bugs-ja PR#562)
|
||||
|
||||
Thu Aug 28 02:37:45 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* eval.c (rb_eval): *a = [1,2] now assigns [[1,2]] to a.
|
||||
|
|
4
parse.y
4
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;
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
#define RUBY_VERSION "1.8.0"
|
||||
#define RUBY_RELEASE_DATE "2003-08-27"
|
||||
#define RUBY_RELEASE_DATE "2003-08-28"
|
||||
#define RUBY_VERSION_CODE 180
|
||||
#define RUBY_RELEASE_CODE 20030827
|
||||
#define RUBY_RELEASE_CODE 20030828
|
||||
|
||||
#define RUBY_VERSION_MAJOR 1
|
||||
#define RUBY_VERSION_MINOR 8
|
||||
#define RUBY_VERSION_TEENY 0
|
||||
#define RUBY_RELEASE_YEAR 2003
|
||||
#define RUBY_RELEASE_MONTH 8
|
||||
#define RUBY_RELEASE_DAY 27
|
||||
#define RUBY_RELEASE_DAY 28
|
||||
|
|
Loading…
Reference in a new issue