summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'time.c')
-rw-r--r--time.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/time.c b/time.c
index 4b402d1c59..cb5d5088a9 100644
--- a/time.c
+++ b/time.c
@@ -783,7 +783,7 @@ time_modify(time)
}
static VALUE
-time_copy_object(copy, time)
+time_init_copy(copy, time)
VALUE copy, time;
{
struct time_object *tobj, *tcopy;
@@ -805,7 +805,7 @@ time_dup(time)
VALUE time;
{
VALUE dup = time_s_alloc(rb_cTime);
- time_copy_object(dup, time);
+ time_init_copy(dup, time);
return dup;
}
@@ -1415,7 +1415,7 @@ Init_Time()
rb_define_method(rb_cTime, "<=>", time_cmp, 1);
rb_define_method(rb_cTime, "eql?", time_eql, 1);
rb_define_method(rb_cTime, "hash", time_hash, 0);
- rb_define_method(rb_cTime, "copy_object", time_copy_object, 1);
+ rb_define_method(rb_cTime, "initialize_copy", time_init_copy, 1);
rb_define_method(rb_cTime, "localtime", time_localtime, 0);
rb_define_method(rb_cTime, "gmtime", time_gmtime, 0);