diff options
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -285,7 +285,7 @@ rb_obj_init_copy(obj, orig) * method, the return value is an array containing <code>self</code>. * However, this latter behavior will soon be obsolete. * - * self.to_a #=> -:1: warning: default `to_a' will be obsolete + * self.to_a #=> -:1: warning: Object#to_a is deprecated * "hello".to_a #=> ["hello"] * Time.new.to_a #=> [39, 54, 8, 9, 4, 2003, 3, 99, true, "CDT"] */ @@ -295,7 +295,7 @@ static VALUE rb_any_to_a(obj) VALUE obj; { - rb_warn("default `to_a' will be obsolete"); + rb_warn("Object#to_a is deprecated"); return rb_ary_new3(1, obj); } |