summaryrefslogtreecommitdiff
path: root/doc/regexp.rdoc
diff options
context:
space:
mode:
authorzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-20 13:34:34 +0000
committerzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-20 13:34:34 +0000
commit368cecc1517ba2a09b0413eeaf5c3ba9981de4db (patch)
tree305af78abc9e492cd73f5d4e026e5bed6a7c6c1f /doc/regexp.rdoc
parentabfb7b35a24a19d5057c75246bae1300303eaaef (diff)
* doc/regexp.rdoc: [DOC] Fix typo in example [Fixes GH-365]
Patch by Juanito Fatas https://github.com/ruby/ruby/pull/365 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'doc/regexp.rdoc')
-rw-r--r--doc/regexp.rdoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/regexp.rdoc b/doc/regexp.rdoc
index 1c68533a8d..9263e229d8 100644
--- a/doc/regexp.rdoc
+++ b/doc/regexp.rdoc
@@ -611,7 +611,7 @@ The following patterns match instantly as you would expect:
/(b|a)/ =~ s #=> 0
/(b|a+)/ =~ s #=> 0
- /(b|a+)*\/ =~ s #=> 0
+ /(b|a+)*/ =~ s #=> 0
However, the following pattern takes appreciably longer: