Skip to content

Commit

Permalink
Fix an example [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Jun 21, 2019
1 parent c997f7d commit 35392ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enumerator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 35392ff

Please sign in to comment.