diff options
Diffstat (limited to 'doc/re.rdoc')
-rw-r--r-- | doc/re.rdoc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/re.rdoc b/doc/re.rdoc index a52d1a6956..d629a4a79e 100644 --- a/doc/re.rdoc +++ b/doc/re.rdoc @@ -153,7 +153,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>"> |