diff --git a/re.c b/re.c index a9ef3b6aad..88d051904f 100644 --- a/re.c +++ b/re.c @@ -887,7 +887,7 @@ make_regexp(const char *s, long len, rb_encoding *enc, int flags, onig_errmsg_bu * MatchData encapsulates the result of matching a Regexp against * string. It is returned by Regexp#match and * String#match, and also stored in a global variable returned by - * Regexp.last_match + * Regexp.last_match. * * Usage: * @@ -918,11 +918,11 @@ make_regexp(const char *s, long len, rb_encoding *enc, int flags, onig_errmsg_bu * == Global variables equivalence * * Parts of last MatchData (returned by Regexp.last_match) are also - * aliased as a global variables: + * aliased as global variables: * * * $~ is Regexp.last_match; * * $& is Regexp.last_match[0]; - * * $1, $2 and so on are + * * $1, $2, and so on are * Regexp.last_match[i] (captures by number); * * $` is Regexp.last_match.pre_match; * * $' is Regexp.last_match.post_match;