From c6c3b739f0ca556074c8f528dfa061c9ab9977e9 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 23 Jun 2007 08:34:21 +0000 Subject: update document to follow MatchData#inspect implementation. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'string.c') diff --git a/string.c b/string.c index 118b9f597..a7c88a55a 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') #=> # + * 'hello'.match('(.)\1') #=> # * 'hello'.match('(.)\1')[0] #=> "ll" * 'hello'.match(/(.)\1/)[0] #=> "ll" * 'hello'.match('xx') #=> nil -- cgit