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

ruby-changes:34014

From: zzak <ko1@a...>
Date: Sun, 25 May 2014 10:20:35 +0900 (JST)
Subject: [ruby-changes:34014] zzak:r46095 (trunk): * enum.c: [DOC] Use #find in example to clarify alias by @rachellogie

zzak	2014-05-25 10:20:30 +0900 (Sun, 25 May 2014)

  New Revision: 46095

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

  Log:
    * enum.c: [DOC] Use #find in example to clarify alias by @rachellogie
      Patch submitted via documenting-ruby/ruby#34 [ci skip]

  Modified files:
    trunk/ChangeLog
    trunk/enum.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 46094)
+++ ChangeLog	(revision 46095)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun May 25 10:19:34 2014  Zachary Scott  <e@z...>
+
+	* enum.c: [DOC] Use #find in example to clarify alias by @rachellogie
+	  Patch submitted via documenting-ruby/ruby#34
+
 Sun May 25 10:16:43 2014  Zachary Scott  <e@z...>
 
 	* cont.c: [DOC] Fix rdoc in example for Fiber#transfer by @majjoha
Index: enum.c
===================================================================
--- enum.c	(revision 46094)
+++ enum.c	(revision 46095)
@@ -203,8 +203,8 @@ find_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, mem https://github.com/ruby/ruby/blob/trunk/enum.c#L203
  *
  *  If no block is given, an enumerator is returned instead.
  *
- *     (1..10).detect  { |i| i % 5 == 0 and i % 7 == 0 }   #=> nil
- *     (1..100).detect { |i| i % 5 == 0 and i % 7 == 0 }   #=> 35
+ *     (1..10).detect	{ |i| i % 5 == 0 and i % 7 == 0 }   #=> nil
+ *     (1..100).find	{ |i| i % 5 == 0 and i % 7 == 0 }   #=> 35
  *
  */
 

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

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