diff options
author | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-13 01:56:27 +0000 |
---|---|---|
committer | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-13 01:56:27 +0000 |
commit | 7b6deb9c4b1fc641838e8822750c46e7807c9ec9 (patch) | |
tree | 4aa3d257644bd32d78e60e2de1235690bb449221 | |
parent | 078ae7dd8054b09fd576ddaf019e39e1042770d0 (diff) | |
download | ruby-7b6deb9c4b1fc641838e8822750c46e7807c9ec9.tar.gz |
* doc/regexp.rdoc: [DOC] Fix typo in Special global variables section.
Reported by Alex Johnson on ruby-doc.org
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | doc/regexp.rdoc | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Wed Nov 13 10:55:43 2013 Zachary Scott <e@zzak.io> + + * doc/regexp.rdoc: [DOC] Fix typo in Special global variables section. + Reported by Alex Johnson on ruby-doc.org + Wed Nov 13 10:43:19 2013 Zachary Scott <e@zzak.io> * hash.c: [DOC] Adds an example for Hash#store 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] |