From 35392ff0a00934ec02558305b7be8dffe6420d30 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 21 Jun 2019 17:40:28 +0900 Subject: Fix an example [ci skip] --- enumerator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'enumerator.c') diff --git a/enumerator.c b/enumerator.c index 21a7389708..c37c8af298 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 -- cgit v1.2.3