summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-06 09:47:08 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-06 09:47:08 +0000
commit7b7c03717949dbe5c41631bbf02652b251d02636 (patch)
treed1a1f3477269afcf2712463ea131713c75bf44e1 /object.c
parent2e0680f22100e8fc46c8efb43ff1a1b875a9e306 (diff)
* object.c (rb_obj_pattern_match): now returns nil.
[ruby-core:05391] * sample/svr.rb: service can be stopped by ill-behaved client; use tsvr.rb instead. * missing/erf.c: original erf.c by prof. Okumura is confirmed to be public domain. reverted BSD implementation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8732 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 c422636a5c..8a5eeea6aa 100644
--- a/object.c
+++ b/object.c
@@ -1012,7 +1012,7 @@ rb_false(obj)
/*
* call-seq:
- * obj =~ other => false
+ * obj =~ other => nil
*
* Pattern Match---Overridden by descendents (notably
* <code>Regexp</code> and <code>String</code>) to provide meaningful
@@ -1023,7 +1023,7 @@ static VALUE
rb_obj_pattern_match(obj1, obj2)
VALUE obj1, obj2;
{
- return Qfalse;
+ return Qnil;
}
/**********************************************************************