summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
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 f7d96e238f..80bd1673c3 100644
--- a/object.c
+++ b/object.c
@@ -1121,7 +1121,7 @@ rb_mod_to_s(VALUE klass)
static VALUE
rb_mod_freeze(VALUE mod)
{
- rb_mod_to_s(mod);
+ rb_class_name(mod);
return rb_obj_freeze(mod);
}