summaryrefslogtreecommitdiff
path: root/doc/re.rdoc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/re.rdoc')
-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