summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/regexp.rdoc2
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]