From 968fcd8346ecb15af8fef76e3b7f7e1be1737a4f Mon Sep 17 00:00:00 2001 From: kazu Date: Sun, 16 Dec 2018 14:54:05 +0000 Subject: [PATCH] [DOC] Update Object#=~ [ci skip] see r65989 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- object.c | 7 ++++--- 1 file 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 - * Regexp and String) 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