summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
Diffstat (limited to 'array.c')
-rw-r--r--array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/array.c b/array.c
index d2cf5ac1f8..3b9a294d95 100644
--- a/array.c
+++ b/array.c
@@ -2929,7 +2929,7 @@ rb_ary_choice(VALUE ary)
* Calls <i>block</i> repeatedly forever.
*
* a = ["a", "b", "c"]
- * a.each {|x| puts x } # print, a, b, c, a, b, c,.. forever.
+ * a.cycle {|x| puts x } # print, a, b, c, a, b, c,.. forever.
*
*/