From 887163beb8f27c5400cd04dbf98c474ed035526f Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA Date: Fri, 21 Jun 2019 17:08:42 +0900 Subject: Fix call-seq of lazy.filter_map [ci skip] --- enumerator.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'enumerator.c') diff --git a/enumerator.c b/enumerator.c index 3d19c40b15..21a7389708 100644 --- a/enumerator.c +++ b/enumerator.c @@ -2038,12 +2038,11 @@ lazy_filter_map_proc(RB_BLOCK_CALL_FUNC_ARGLIST(val, m)) /* * call-seq: - * enum.filter_map { |obj| block } -> an_enumerator - * enum.filter_map -> an_enumerator + * lazy.filter_map { |obj| block } -> lazy_enumerator * * Returns an enumerator which will return a new array containing the * truthy results (everything except +false+ or +nil+) of running the - * +block+ for every element in +enum+. + * +block+ for every element in +lazy+. * * (1..).lazy.filter_map { |i| i * 2 if i.even? }.take(5) #=> [4, 8, 12, 16, 20] * -- cgit v1.2.3