From cc3ede1ba8b59115e1a5abf02873e92e9841a00b Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 10 Apr 2003 08:37:12 +0000 Subject: * variable.c (rb_mod_name): always return empty string for anonymous class/module. (ruby-bugs-ja PR#424) * config.sub: stop forcing addition of -gnu to -linux. * variable.c (classname): refactoring. * variable.c (rb_class_path): __tmp__classpath__ handling moved from classname(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'parse.y') diff --git a/parse.y b/parse.y index ea4112c5b..cae73c3e0 100644 --- a/parse.y +++ b/parse.y @@ -4271,10 +4271,10 @@ yylex() } if (ISDIGIT(c)) { if (tokidx == 1) { - rb_compile_error("`@%c' is not allowable as an instance variable name", c); + rb_compile_error("`@%c' is not allowed as an instance variable name", c); } else { - rb_compile_error("`@@%c' is not allowable as a class variable name", c); + rb_compile_error("`@@%c' is not allowed as a class variable name", c); } } if (!is_identchar(c)) { -- cgit