1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[DOC] Fix typos [ci skip]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kazu 2018-12-13 09:51:05 +00:00
parent 2d4c248d77
commit 069b730f96
2 changed files with 2 additions and 2 deletions

2
proc.c
View file

@ -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

2
re.c
View file

@ -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.