aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--proc.c2
-rw-r--r--re.c2
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
* * <code>$1</code>, <code>$2</code> and so on are
* <code>Regexp.last_match[i]</code> (captures by number);
* * <code>$`</code> is <code>Regexp.last_match.pre_match</code>;
- * * <code>$`</code> is <code>Regexp.last_match.post_match</code>;
+ * * <code>$'</code> is <code>Regexp.last_match.post_match</code>;
* * <code>$+</code> is <code>Regexp.last_match[-1]</code> (the last capture).
*
* See also "Special global variables" section in Regexp documentation.