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

ruby-changes:19736

From: naruse <ko1@a...>
Date: Sun, 29 May 2011 23:18:43 +0900 (JST)
Subject: [ruby-changes:19736] naruse:r31781 (trunk): * re.c (rb_reg_match): fix rdoc of Regexp#=~.

naruse	2011-05-29 23:18:34 +0900 (Sun, 29 May 2011)

  New Revision: 31781

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31781

  Log:
    * re.c (rb_reg_match): fix rdoc of Regexp#=~.
      patched by Tsuyoshi Sawada. [Bug #4781]

  Modified files:
    trunk/ChangeLog
    trunk/re.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 31780)
+++ ChangeLog	(revision 31781)
@@ -1,3 +1,8 @@
+Sun May 29 23:17:29 2011  NARUSE, Yui  <naruse@r...>
+
+	* re.c (rb_reg_match): fix rdoc of Regexp#=~.
+	  patched by Tsuyoshi Sawada. [Bug #4781]
+
 Sun May 29 23:10:42 2011  NARUSE, Yui  <naruse@r...>
 
 	* lib/webrick/https.rb (WEBrick::HTTPRequest#parse_uri):
Index: re.c
===================================================================
--- re.c	(revision 31780)
+++ re.c	(revision 31781)
@@ -2713,7 +2713,7 @@
  *  The parser detects 'regexp-literal =~ expression' for the assignment.
  *  The regexp must be a literal without interpolation and placed at left hand side.
  *
- *  The assignment is not occur if the regexp is not a literal.
+ *  The assignment does not occur if the regexp is not a literal.
  *
  *     re = /(?<lhs>\w+)\s*=\s*(?<rhs>\w+)/
  *     re =~ "  x = y  "
@@ -2727,7 +2727,7 @@
  *     /(?<lhs>\w+)\s*=\s*#{rhs_pat}/ =~ "x = y"
  *     p lhs    # undefined local variable
  *
- *  The assignment is not occur if the regexp is placed at right hand side.
+ *  The assignment does not occur if the regexp is placed at the right hand side.
  *
  *    "  x = y  " =~ /(?<lhs>\w+)\s*=\s*(?<rhs>\w+)/
  *    p lhs, rhs # undefined local variable

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

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