From 7b7c03717949dbe5c41631bbf02652b251d02636 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 6 Jul 2005 09:47:08 +0000 Subject: * 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 --- object.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'object.c') 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 * Regexp and String) to provide meaningful @@ -1023,7 +1023,7 @@ static VALUE rb_obj_pattern_match(obj1, obj2) VALUE obj1, obj2; { - return Qfalse; + return Qnil; } /********************************************************************** -- cgit v1.2.3