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

ruby-changes:31581

From: zzak <ko1@a...>
Date: Wed, 13 Nov 2013 10:56:32 +0900 (JST)
Subject: [ruby-changes:31581] zzak:r43660 (trunk): * doc/regexp.rdoc: [DOC] Fix typo in Special global variables section.

zzak	2013-11-13 10:56:27 +0900 (Wed, 13 Nov 2013)

  New Revision: 43660

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

  Log:
    * doc/regexp.rdoc: [DOC] Fix typo in Special global variables section.
      Reported by Alex Johnson on ruby-doc.org

  Modified files:
    trunk/ChangeLog
    trunk/doc/regexp.rdoc
Index: doc/regexp.rdoc
===================================================================
--- doc/regexp.rdoc	(revision 43659)
+++ doc/regexp.rdoc	(revision 43660)
@@ -608,7 +608,7 @@ Example: https://github.com/ruby/ruby/blob/trunk/doc/regexp.rdoc#L608
 
     m = /s(\w{2}).*(c)/.match('haystack') #=> #<MatchData "stac" 1:"ta" 2:"c">
     $~                                    #=> #<MatchData "stac" 1:"ta" 2:"c">
-    Regexp.latch_match                    #=> #<MatchData "stac" 1:"ta" 2:"c">
+    Regexp.last_match                     #=> #<MatchData "stac" 1:"ta" 2:"c">
 
     $&      #=> "stac"
             # same as m[0]
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 43659)
+++ ChangeLog	(revision 43660)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Nov 13 10:55:43 2013  Zachary Scott  <e@z...>
+
+	* doc/regexp.rdoc: [DOC] Fix typo in Special global variables section.
+	  Reported by Alex Johnson on ruby-doc.org
+
 Wed Nov 13 10:43:19 2013  Zachary Scott  <e@z...>
 
 	* hash.c: [DOC] Adds an example for Hash#store

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

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