summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-01 21:35:05 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-01 21:35:05 +0000
commit8424e37992bec99e25dce69cb9fe04e61e9e630c (patch)
tree7cdbc40466395e58f37390defb0e6363716bec62 /doc
parent5b95238aa7886a0c1de50895ebc98d1236eb914e (diff)
* 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
Diffstat (limited to 'doc')
-rw-r--r--doc/re.rdoc3
1 files changed, 1 insertions, 2 deletions
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)
- #=> #<MatchData "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa">
+ Regexp.new('\A' 'a?' * 29 + 'a' * 29) =~ 'a' * 29