diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | doc/regexp.rdoc | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Sat Jul 20 22:33:13 2013 Zachary Scott <[email protected]> + + * doc/regexp.rdoc: [DOC] Fix typo in example [Fixes GH-365] + Patch by Juanito Fatas https://github.com/ruby/ruby/pull/365 + Sat Jul 20 17:46:03 2013 NARUSE, Yui <[email protected]> * string.c (rb_str_succ): add missing case NEIGHBOR_WRAPPED. 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: |