From fe377d3b8e554856b27e00b4c4e1ccce0cb1ee5e Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 23 Jun 2007 08:34:21 +0000 Subject: [PATCH] update document to follow MatchData#inspect implementation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- re.c | 2 +- string.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/re.c b/re.c index 11c3b62315..ec82593395 100644 --- a/re.c +++ b/re.c @@ -2313,7 +2313,7 @@ match_setter(VALUE val) * MatchData object. * * /c(.)t/ =~ 'cat' #=> 0 - * Regexp.last_match #=> # + * Regexp.last_match #=> # * Regexp.last_match(0) #=> "cat" * Regexp.last_match(1) #=> "a" * Regexp.last_match(2) #=> nil 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') #=> # + * 'hello'.match('(.)\1') #=> # * 'hello'.match('(.)\1')[0] #=> "ll" * 'hello'.match(/(.)\1/)[0] #=> "ll" * 'hello'.match('xx') #=> nil