summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-17 11:00:23 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-17 11:00:23 +0000
commit988ffd3c07ee0b728e1bc7f4ab3237dd735cbdf4 (patch)
tree43d60a83f3c8d9dccdfd4bc84815653d8da8a1fa /object.c
parent3d5cdfec1ca04e784b06f2d5ea402c804572df22 (diff)
* object.c (rb_any_to_a): Always use "... is deprecated" for a
deprecation warning to make it easier to find out what is deprecated and going to be removed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@20849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r--object.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/object.c b/object.c
index bf1046cc43..8149063988 100644
--- a/object.c
+++ b/object.c
@@ -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);
}