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

ruby-changes:54166

From: stomar <ko1@a...>
Date: Fri, 14 Dec 2018 05:25:40 +0900 (JST)
Subject: [ruby-changes:54166] stomar:r66387 (trunk): re.c: [DOC] fix typos

stomar	2018-12-14 05:25:36 +0900 (Fri, 14 Dec 2018)

  New Revision: 66387

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

  Log:
    re.c: [DOC] fix typos

  Modified files:
    trunk/re.c
Index: re.c
===================================================================
--- re.c	(revision 66386)
+++ re.c	(revision 66387)
@@ -887,7 +887,7 @@ make_regexp(const char *s, long len, rb_ https://github.com/ruby/ruby/blob/trunk/re.c#L887
  *  <code>MatchData</code> encapsulates the result of matching a Regexp against
  *  string. It is returned by Regexp#match and
  *  String#match, and also stored in a global variable returned by
- *  Regexp.last_match
+ *  Regexp.last_match.
  *
  *  Usage:
  *
@@ -918,11 +918,11 @@ make_regexp(const char *s, long len, rb_ https://github.com/ruby/ruby/blob/trunk/re.c#L918
  *  == Global variables equivalence
  *
  *  Parts of last <code>MatchData</code> (returned by Regexp.last_match) are also
- *  aliased as a global variables:
+ *  aliased as global variables:
  *
  *  * <code>$~</code> is <code>Regexp.last_match</code>;
  *  * <code>$&</code> is <code>Regexp.last_match[0]</code>;
- *  * <code>$1</code>, <code>$2</code> and so on are
+ *  * <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>;

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

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