Project

General

Profile

Bug #4292 ยป string_rdoc.patch

fix type of rdoc - dre3k (Andrei Kulakov), 01/19/2011 02:32 AM

View differences:

string.c (working copy)
* 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
    (1-1/1)