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

This commit is contained in:
Alan Wu 2024-08-09 16:02:36 -04:00
Родитель ee482f48ee
Коммит 5a570421a5
1 изменённых файлов: 1 добавлений и 1 удалений

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