diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | doc/re.rdoc | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Wed Feb 1 09:50:10 2012 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * doc/re.rdoc (Repetition): fix typo. reported by Ori Avtalion + and patched by Zachary Scott. [Bug #5947] + Wed Feb 1 06:38:54 2012 Nobuyoshi Nakada <nobu@ruby-lang.org> * io.c (argf_close): skip stdin, which should be readable again. diff --git a/doc/re.rdoc b/doc/re.rdoc index 602775d95d..4e943571a8 100644 --- a/doc/re.rdoc +++ b/doc/re.rdoc @@ -179,7 +179,7 @@ contrast, <i>lazy</i> matching makes the minimal amount of matches necessary for overall success. A greedy metacharacter can be made lazy by following it with <tt>?</tt>. - # Both patterns below match the string. The fist uses a greedy + # Both patterns below match the string. The first uses a greedy # quantifier so '.+' matches '<a><b>'; the second uses a lazy # quantifier so '.+?' matches '<a>'. /<.+>/.match("<a><b>") #=> #<MatchData "<a><b>"> |