diff options
author | Alan Wu <[email protected]> | 2024-08-09 16:02:36 -0400 |
---|---|---|
committer | Alan Wu <[email protected]> | 2024-08-09 16:02:36 -0400 |
commit | 5a570421a5a773945aa8f9497b5d64bac809a196 () | |
tree | 5bea1783ac0c888b0cf0ca7337838b017b72b470 /re.c | |
parent | ee482f48ee39a8a68a3fbd93f2e4c891622f4cec (diff) |
[DOC] Regexp.last_match returns `$~`, not `$!`
-rw-r--r-- | re.c | 2 |
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]): * |