summaryrefslogtreecommitdiff
path: root/enumerator.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-21 17:40:28 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-21 17:40:28 +0900
commit35392ff0a00934ec02558305b7be8dffe6420d30 (patch)
treed968367cf4b45d57738b9dba119289295c8efbe9 /enumerator.c
parentc997f7daaa833ec02a852913925b361cd94fd2e8 (diff)
Fix an example [ci skip]
Diffstat (limited to 'enumerator.c')
-rw-r--r--enumerator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/enumerator.c b/enumerator.c
index 21a7389..c37c8af 100644
--- a/enumerator.c
+++ b/enumerator.c
@@ -2044,7 +2044,7 @@ lazy_filter_map_proc(RB_BLOCK_CALL_FUNC_ARGLIST(val, m))
* truthy results (everything except +false+ or +nil+) of running the
* +block+ for every element in +lazy+.
*
- * (1..).lazy.filter_map { |i| i * 2 if i.even? }.take(5) #=> [4, 8, 12, 16, 20]
+ * (1..).lazy.filter_map { |i| i * 2 if i.even? }.first(5) #=> [4, 8, 12, 16, 20]
*
*/
static VALUE