ruby-changes:18630
From: naruse <ko1@a...>
Date: Wed, 26 Jan 2011 10:38:14 +0900 (JST)
Subject: [ruby-changes:18630] Ruby:r30654 (trunk): * string.c (=~): documentation fix; the return value is nil when
naruse 2011-01-26 10:38:05 +0900 (Wed, 26 Jan 2011) New Revision: 30654 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30654 Log: * string.c (=~): documentation fix; the return value is nil when it doesn't match. patched by Andrei Kulakov [ruby-core:34562] Modified files: trunk/ChangeLog trunk/string.c Index: ChangeLog =================================================================== --- ChangeLog (revision 30653) +++ ChangeLog (revision 30654) @@ -1,3 +1,8 @@ +Wed Jan 26 10:36:28 2011 NARUSE, Yui <naruse@r...> + + * string.c (=~): documentation fix; the return value is nil when + it doesn't match. patched by Andrei Kulakov [ruby-core:34562] + Tue Jan 25 08:41:58 2011 Nobuyoshi Nakada <nobu@r...> * dln_find.c (dln_find_1): omit too long pathnames. Index: string.c =================================================================== --- string.c (revision 30653) +++ string.c (revision 30654) @@ -2600,7 +2600,7 @@ * against <i>str</i>,and returns the position the match starts, or * <code>nil</code> if there is no match. Otherwise, invokes * <i>obj.=~</i>, passing <i>str</i> as an argument. The default - * <code>=~</code> in <code>Object</code> returns <code>false</code>. + * <code>=~</code> in <code>Object</code> returns <code>nil</code>. * * "cat o' 9 tails" =~ /\d/ #=> 7 * "cat o' 9 tails" =~ 9 #=> nil -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/