diff --git a/proc.c b/proc.c index c07d33a387..4ec3e401bf 100644 --- a/proc.c +++ b/proc.c @@ -3312,7 +3312,7 @@ rb_method_compose_to_right(VALUE self, VALUE g) * * test_return # => 4, return from proc * - * Lambdas are useful as a self-sufficient higher-order functions, behaving + * Lambdas are useful as self-sufficient higher-order functions, behaving * exactly like Ruby methods. Procs are useful for implementing iterators: * * def test diff --git a/re.c b/re.c index 4b05a4b4c3..a9ef3b6aad 100644 --- a/re.c +++ b/re.c @@ -925,7 +925,7 @@ make_regexp(const char *s, long len, rb_encoding *enc, int flags, onig_errmsg_bu * * $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; + * * $' is Regexp.last_match.post_match; * * $+ is Regexp.last_match[-1] (the last capture). * * See also "Special global variables" section in Regexp documentation.