mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[DOC] Regexp.last_match returns $~
, not $!
This commit is contained in:
parent
ee482f48ee
commit
5a570421a5
1 changed files with 1 additions and 1 deletions
2
re.c
2
re.c
|
@ -4607,7 +4607,7 @@ match_setter(VALUE val, ID _x, VALUE *_y)
|
|||
* Regexp.last_match(n) -> string or nil
|
||||
* Regexp.last_match(name) -> string or nil
|
||||
*
|
||||
* With no argument, returns the value of <tt>$!</tt>,
|
||||
* With no argument, returns the value of <tt>$~</tt>,
|
||||
* which is the result of the most recent pattern match
|
||||
* (see {Regexp global variables}[rdoc-ref:Regexp@Global+Variables]):
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue