From 8424e37992bec99e25dce69cb9fe04e61e9e630c Mon Sep 17 00:00:00 2001 From: drbrain Date: Fri, 1 Jun 2012 21:35:05 +0000 Subject: [PATCH] * doc/re.rdoc (Performance): Removed useless sample output from final performance example and switched from #match to #=~ for consistency. [ruby-trunk - Bug #6524] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ doc/re.rdoc | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8c45f46420..257f3a802b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Sat Jun 2 06:34:15 2012 Eric Hodel + + * doc/re.rdoc (Performance): Removed useless sample output from final + performance example and switched from #match to #=~ for consistency. + [ruby-trunk - Bug #6524] + Fri Jun 1 09:30:53 2012 Nobuyoshi Nakada * object.c (class_or_module_required): extract check for class or diff --git a/doc/re.rdoc b/doc/re.rdoc index 4e943571a8..a357d5c323 100644 --- a/doc/re.rdoc +++ b/doc/re.rdoc @@ -644,6 +644,5 @@ One approach for improving performance is to anchor the match to the beginning of the string, thus significantly reducing the amount of backtracking needed. - Regexp.new('\A' 'a?' * 29 + 'a' * 29).match('a' * 29) - #=> # + Regexp.new('\A' 'a?' * 29 + 'a' * 29) =~ 'a' * 29