diff options
Diffstat (limited to 'doc/regexp.rdoc')
-rw-r--r-- | doc/regexp.rdoc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/regexp.rdoc b/doc/regexp.rdoc index 26779acb1a..3c13b6683f 100644 --- a/doc/regexp.rdoc +++ b/doc/regexp.rdoc @@ -608,7 +608,7 @@ Example: m = /s(\w{2}).*(c)/.match('haystack') #=> #<MatchData "stac" 1:"ta" 2:"c"> $~ #=> #<MatchData "stac" 1:"ta" 2:"c"> - Regexp.latch_match #=> #<MatchData "stac" 1:"ta" 2:"c"> + Regexp.last_match #=> #<MatchData "stac" 1:"ta" 2:"c"> $& #=> "stac" # same as m[0] |