summaryrefslogtreecommitdiffstats
path: root/object.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-16 04:55:14 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-16 04:55:14 +0000
commitcef4168f2fc8440188d371f92d607777a471fdfe (patch)
tree2ab3eafa7c7820209707824cabea6de573c1244e /object.c
parent8770ea7b6b003e4d6de062c12c1eec7d069c93dc (diff)
downloadruby-cef4168f2fc8440188d371f92d607777a471fdfe.tar.gz
ruby-cef4168f2fc8440188d371f92d607777a471fdfe.tar.xz
ruby-cef4168f2fc8440188d371f92d607777a471fdfe.zip
* string.c (str_mod_check): frozen check should be separated.
[ruby-core:3742] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r--object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/object.c b/object.c
index 24536d446..ab3edb69c 100644
--- a/object.c
+++ b/object.c
@@ -1521,7 +1521,7 @@ rb_obj_alloc(klass)
rb_raise(rb_eTypeError, "can't instantiate uninitialized class");
}
if (FL_TEST(klass, FL_SINGLETON)) {
- rb_raise(rb_eTypeError, "can't create instance of virtual class");
+ rb_raise(rb_eTypeError, "can't create instance of singleton class");
}
obj = rb_funcall(klass, ID_ALLOCATOR, 0, 0);
if (rb_obj_class(obj) != rb_class_real(klass)) {