summaryrefslogtreecommitdiff
path: root/struct.c
diff options
context:
space:
mode:
Diffstat (limited to 'struct.c')
-rw-r--r--struct.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/struct.c b/struct.c
index 57e9e11c2d..e8ae73a5e7 100644
--- a/struct.c
+++ b/struct.c
@@ -421,7 +421,7 @@ rb_struct_to_a(s)
}
static VALUE
-rb_struct_become(copy, s)
+rb_struct_copy_object(copy, s)
VALUE copy, s;
{
if (copy == s) return copy;
@@ -592,7 +592,7 @@ Init_Struct()
rb_define_singleton_method(rb_cStruct, "new", rb_struct_s_def, -1);
rb_define_method(rb_cStruct, "initialize", rb_struct_initialize, -2);
- rb_define_method(rb_cStruct, "become", rb_struct_become, 1);
+ rb_define_method(rb_cStruct, "copy_object", rb_struct_copy_object, 1);
rb_define_method(rb_cStruct, "==", rb_struct_equal, 1);