* 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
This commit is contained in:
parent
a0eeef69e7
commit
8aa03af784
@ -1,3 +1,8 @@
|
||||
Wed Jan 26 10:36:28 2011 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* 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@ruby-lang.org>
|
||||
|
||||
* dln_find.c (dln_find_1): omit too long pathnames.
|
||||
|
2
string.c
2
string.c
@ -2600,7 +2600,7 @@ rb_str_rindex_m(int argc, VALUE *argv, VALUE str)
|
||||
* 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user