1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix an example [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2019-06-21 17:40:28 +09:00
parent c997f7daaa
commit 35392ff0a0
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -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