[前][次][番号順一覧][スレッド一覧]

ruby-changes:54162

From: kazu <ko1@a...>
Date: Thu, 13 Dec 2018 18:51:11 +0900 (JST)
Subject: [ruby-changes:54162] kazu:r66383 (trunk): [DOC] Fix typos [ci skip]

kazu	2018-12-13 18:51:05 +0900 (Thu, 13 Dec 2018)

  New Revision: 66383

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66383

  Log:
    [DOC] Fix typos [ci skip]

  Modified files:
    trunk/proc.c
    trunk/re.c
Index: re.c
===================================================================
--- re.c	(revision 66382)
+++ re.c	(revision 66383)
@@ -925,7 +925,7 @@ make_regexp(const char *s, long len, rb_ https://github.com/ruby/ruby/blob/trunk/re.c#L925
  *  * <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.
Index: proc.c
===================================================================
--- proc.c	(revision 66382)
+++ proc.c	(revision 66383)
@@ -3312,7 +3312,7 @@ rb_method_compose_to_right(VALUE self, V https://github.com/ruby/ruby/blob/trunk/proc.c#L3312
  *
  *      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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]