summaryrefslogtreecommitdiff
path: root/enum.c
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-11 19:55:56 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-11 19:55:56 +0000
commite91ccb6c67ce1d6f3177fc1f871f23c17b0f97b0 (patch)
tree39a591a85eafd67c8e6a91b256c53eb023d326ad /enum.c
parent919f1438ae30848b8f1b9e7071c27c302049a0f0 (diff)
* array.c: More doc examples for Array#{map|collect}{!} using both forms
* enum.c: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44140 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 aae4454..6e40b50 100644
--- a/enum.c
+++ b/enum.c
@@ -420,7 +420,7 @@ collect_all(RB_BLOCK_CALL_FUNC_ARGLIST(i, ary))
*
* If no block is given, an enumerator is returned instead.
*
- * (1..4).collect { |i| i*i } #=> [1, 4, 9, 16]
+ * (1..4).map { |i| i*i } #=> [1, 4, 9, 16]
* (1..4).collect { "cat" } #=> ["cat", "cat", "cat", "cat"]
*
*/