aboutsummaryrefslogtreecommitdiffstats
path: root/object.c
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-16 14:54:05 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-16 14:54:05 +0000
commit968fcd8346ecb15af8fef76e3b7f7e1be1737a4f (patch)
tree20323b727d5ec1172e40dceb476d34d87d2e6184 /object.c
parentf84ae88b2c7261b7ad679f29aeb7937367bfbdb4 (diff)
downloadruby-968fcd8346ecb15af8fef76e3b7f7e1be1737a4f.tar.gz
[DOC] Update Object#=~ [ci skip]
see r65989 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r--object.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/object.c b/object.c
index 86a852c588..faf6db7d8f 100644
--- a/object.c
+++ b/object.c
@@ -1678,9 +1678,10 @@ rb_false(VALUE obj)
* call-seq:
* obj =~ other -> nil
*
- * Pattern Match---Overridden by descendants (notably
- * <code>Regexp</code> and <code>String</code>) to provide meaningful
- * pattern-match semantics.
+ * This method is deprecated.
+ *
+ * This is not only unuseful but also troublesome because it
+ * may hide a type error.
*/
static VALUE