From 3b1276eb390779a79d42bfabd588567efadcb72d Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 9 Feb 2012 13:18:26 +0000 Subject: [PATCH] update doc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- enum.c | 1 + 1 file changed, 1 insertion(+) diff --git a/enum.c b/enum.c index bbb02dcb9a..a3c39c4b11 100644 --- a/enum.c +++ b/enum.c @@ -445,6 +445,7 @@ flat_map_i(VALUE i, VALUE ary, int argc, VALUE *argv) * * If no block is given, an enumerator is returned instead. * + * [1, 2, 3, 4].flat_map { |e| [e, -e] } #=> [1, -1, 2, -2, 3, -3, 4, -4] * [[1, 2], [3, 4]].flat_map { |e| e + [100] } #=> [1, 2, 100, 3, 4, 100] * */