[DOC] Regexp.last_match returns $~, not $!

This commit is contained in:
Alan Wu 2024-08-09 16:02:36 -04:00
parent ee482f48ee
commit 5a570421a5

2
re.c
View file

@ -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]):
*