diff --git a/re.c b/re.c index d54098ed83..215098ba21 100644 --- a/re.c +++ b/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 $!, + * With no argument, returns the value of $~, * which is the result of the most recent pattern match * (see {Regexp global variables}[rdoc-ref:Regexp@Global+Variables]): *