summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-23 08:34:21 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-23 08:34:21 +0000
commitfe377d3b8e554856b27e00b4c4e1ccce0cb1ee5e (patch)
tree3dda231a99bf3ed4c3f9747758ce0498363f3ab9 /string.c
parent18ee9451746f5a60817e944209caeda9dacc3776 (diff)
update document to follow MatchData#inspect implementation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index 118b9f5975..a7c88a55a0 100644
--- a/string.c
+++ b/string.c
@@ -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