From 069b730f9673f34af3e4ec17dcb06d0f8401911d Mon Sep 17 00:00:00 2001 From: kazu Date: Thu, 13 Dec 2018 09:51:05 +0000 Subject: [PATCH] [DOC] Fix typos [ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- proc.c | 2 +- re.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.