Project

General

Profile

Bug #9819 ยป patch.txt

JumpHigh777 (Rachel Logie), 05/09/2014 04:33 AM

 
From 79fc8d6d4d478e905c083a7ed82b4e6ed6a535b5 Mon Sep 17 00:00:00 2001
From: rachellogie <rachel.logie1@gmail.com>
Date: Thu, 8 May 2014 21:37:14 -0600
Subject: [PATCH] changed documentation for enumerable methods find and detect

---
enum.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/enum.c b/enum.c
index cd2d49d..7bdc5b4 100644
--- a/enum.c
+++ b/enum.c
@@ -204,7 +204,7 @@ find_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, memop))
* 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..100).find { |i| i % 5 == 0 and i % 7 == 0 } #=> 35
*
*/
--
1.9.1

    (1-1/1)