diff --git a/string.c b/string.c index 7a9b22ca7f..56ed266b7c 100644 --- a/string.c +++ b/string.c @@ -3657,6 +3657,7 @@ static VALUE get_pat(VALUE); * 'hello'.match('(.)\1') #=> # * 'hello'.match('(.)\1')[0] #=> "ll" * 'hello'.match(/(.)\1/)[0] #=> "ll" + * 'hello'.match(/(.)\1/, 3) #=> nil * 'hello'.match('xx') #=> nil * * If a block is given, invoke the block with MatchData if match succeed, so