summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authorAlan Wu <[email protected]>2024-08-09 16:02:36 -0400
committerAlan Wu <[email protected]>2024-08-09 16:02:36 -0400
commit5a570421a5a773945aa8f9497b5d64bac809a196 ()
tree5bea1783ac0c888b0cf0ca7337838b017b72b470 /re.c
parentee482f48ee39a8a68a3fbd93f2e4c891622f4cec (diff)
[DOC] Regexp.last_match returns `$~`, not `$!`
-rw-r--r--re.c2
1 files changed, 1 insertions, 1 deletions
@@ -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>,
* which is the result of the most recent pattern match
* (see {Regexp global variables}[rdoc-ref:Regexp@Global+Variables]):
*