mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
abfb7b35a2
commit
368cecc151
2 changed files with 6 additions and 1 deletions
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue