diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-06-21 17:40:28 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-06-21 17:40:28 +0900 |
commit | 35392ff0a00934ec02558305b7be8dffe6420d30 (patch) | |
tree | d968367cf4b45d57738b9dba119289295c8efbe9 /enumerator.c | |
parent | c997f7daaa833ec02a852913925b361cd94fd2e8 (diff) |
Fix an example [ci skip]
Diffstat (limited to 'enumerator.c')
-rw-r--r-- | enumerator.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |