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

ruby-changes:23810

From: drbrain <ko1@a...>
Date: Sat, 2 Jun 2012 06:35:56 +0900 (JST)
Subject: [ruby-changes:23810] drbrain:r35860 (trunk): * doc/re.rdoc (Performance): Removed useless sample output from final

drbrain	2012-06-02 06:35:05 +0900 (Sat, 02 Jun 2012)

  New Revision: 35860

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

  Log:
    * doc/re.rdoc (Performance):  Removed useless sample output from final
      performance example and switched from #match to #=~ for consistency.
      [ruby-trunk - Bug #6524]

  Modified files:
    trunk/ChangeLog
    trunk/doc/re.rdoc

Index: doc/re.rdoc
===================================================================
--- doc/re.rdoc	(revision 35859)
+++ doc/re.rdoc	(revision 35860)
@@ -644,6 +644,5 @@
 beginning of the string, thus significantly reducing the amount of
 backtracking needed.
 
-    Regexp.new('\A' 'a?' * 29 + 'a' * 29).match('a' * 29)
-        #=> #<MatchData "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa">
+    Regexp.new('\A' 'a?' * 29 + 'a' * 29) =~ 'a' * 29
 
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 35859)
+++ ChangeLog	(revision 35860)
@@ -1,3 +1,9 @@
+Sat Jun  2 06:34:15 2012  Eric Hodel  <drbrain@s...>
+
+	* doc/re.rdoc (Performance):  Removed useless sample output from final
+	  performance example and switched from #match to #=~ for consistency.
+	  [ruby-trunk - Bug #6524]
+
 Fri Jun  1 09:30:53 2012  Nobuyoshi Nakada  <nobu@r...>
 
 	* object.c (class_or_module_required): extract check for class or

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

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