From 8aa03af784b1192e5e7f6b17ccfe5699492195b5 Mon Sep 17 00:00:00 2001 From: naruse Date: Wed, 26 Jan 2011 01:38:05 +0000 Subject: * string.c (=~): documentation fix; the return value is nil when it doesn't match. patched by Andrei Kulakov [ruby-core:34562] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'string.c') diff --git a/string.c b/string.c index e5e24acb72..f7c0ff7762 100644 --- a/string.c +++ b/string.c @@ -2600,7 +2600,7 @@ rb_str_rindex_m(int argc, VALUE *argv, VALUE str) * against str,and returns the position the match starts, or * nil if there is no match. Otherwise, invokes * obj.=~, passing str as an argument. The default - * =~ in Object returns false. + * =~ in Object returns nil. * * "cat o' 9 tails" =~ /\d/ #=> 7 * "cat o' 9 tails" =~ 9 #=> nil -- cgit v1.2.3