diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-23 08:34:21 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-23 08:34:21 +0000 |
| commit | c6c3b739f0ca556074c8f528dfa061c9ab9977e9 (patch) | |
| tree | 3dda231a99bf3ed4c3f9747758ce0498363f3ab9 /string.c | |
| parent | 03dc72ce80475d167ac0815a81c74198fa98380e (diff) | |
| download | ruby-c6c3b739f0ca556074c8f528dfa061c9ab9977e9.tar.gz ruby-c6c3b739f0ca556074c8f528dfa061c9ab9977e9.tar.xz ruby-c6c3b739f0ca556074c8f528dfa061c9ab9977e9.zip | |
update document to follow MatchData#inspect implementation.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
| -rw-r--r-- | string.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1423,7 +1423,7 @@ static VALUE get_pat(VALUE, int); * parameter is present, it specifies the position in the string to begin the * search. * - * 'hello'.match('(.)\1') #=> #<MatchData:0x401b3d30> + * 'hello'.match('(.)\1') #=> #<MatchData "ll" "l"> * 'hello'.match('(.)\1')[0] #=> "ll" * 'hello'.match(/(.)\1/)[0] #=> "ll" * 'hello'.match('xx') #=> nil |
