1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Show the class of the receiver [Feature #15231]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2018-12-06 23:03:54 +00:00
parent 3a94b881b9
commit 973f84ef55

View file

@ -1686,7 +1686,8 @@ rb_false(VALUE obj)
static VALUE static VALUE
rb_obj_match(VALUE obj1, VALUE obj2) rb_obj_match(VALUE obj1, VALUE obj2)
{ {
rb_warning("Object#=~ is deprecated; it always returns nil"); rb_warning("deprecated Object#=~ is called on %"PRIsVALUE
"; it always returns nil", rb_obj_class(obj1));
return Qnil; return Qnil;
} }