summaryrefslogtreecommitdiff
path: root/enum.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-09 13:18:26 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-09 13:18:26 +0000
commit3b1276eb390779a79d42bfabd588567efadcb72d (patch)
treeb0c1d3120a353011d14f54e7b114294af0692a68 /enum.c
parentc7f16b8662a92cab7e079971b799ccffe44eb1f8 (diff)
update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enum.c')
-rw-r--r--enum.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/enum.c b/enum.c
index bbb02dc..a3c39c4 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]
*
*/