summaryrefslogtreecommitdiff
path: root/enum.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-08 15:44:41 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-08 15:44:41 +0000
commitde25f35c986512dab1059f7655380bf7c3f7e814 (patch)
treec640a420e2e11fd0a7b9664aed2f90197a836360 /enum.c
parentfc018c9b346702dae0917f5312927c3beab1c0ec (diff)
downloadruby-de25f35c986512dab1059f7655380bf7c3f7e814.tar.gz
update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enum.c')
-rw-r--r--enum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/enum.c b/enum.c
index dae3d47f9a..bbb02dcb9a 100644
--- a/enum.c
+++ b/enum.c
@@ -445,7 +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 { |i| i } #=> [1, 2, 3, 4]
+ * [[1, 2], [3, 4]].flat_map { |e| e + [100] } #=> [1, 2, 100, 3, 4, 100]
*
*/