ruby-changes:56175
From: Kazuhiro <ko1@a...>
Date: Fri, 21 Jun 2019 17:11:33 +0900 (JST)
Subject: [ruby-changes:56175] Kazuhiro NISHIYAMA: 887163beb8 (trunk): Fix call-seq of lazy.filter_map [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=887163beb8 From 887163beb8f27c5400cd04dbf98c474ed035526f Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA <zn@m...> Date: Fri, 21 Jun 2019 17:08:42 +0900 Subject: Fix call-seq of lazy.filter_map [ci skip] diff --git a/enumerator.c b/enumerator.c index 3d19c40..21a7389 100644 --- a/enumerator.c +++ b/enumerator.c @@ -2038,12 +2038,11 @@ lazy_filter_map_proc(RB_BLOCK_CALL_FUNC_ARGLIST(val, m)) https://github.com/ruby/ruby/blob/trunk/enumerator.c#L2038 /* * 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 v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/