mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
078ae7dd80
commit
7b6deb9c4b
2 changed files with 6 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue