summaryrefslogtreecommitdiffstats
path: root/enum.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-08 17:03:33 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-08 17:03:33 +0000
commit9d165a0e09bd9902b33aaca42830b01414b54608 (patch)
tree51ade0c77e48d28082161fb126579d4e4a07ce84 /enum.c
parentee09006c1a0fac261f3cf2ba960a7cd68877b5c6 (diff)
downloadruby-9d165a0e09bd9902b33aaca42830b01414b54608.tar.gz
ruby-9d165a0e09bd9902b33aaca42830b01414b54608.tar.xz
ruby-9d165a0e09bd9902b33aaca42830b01414b54608.zip
* enum.c (enum_cycle): typo fixed. a patch from Kazuhiro
NISHIYAMA <zn AT mbf.nifty.com>. [ruby-dev:31362] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12908 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 d7f9f740c..73b276786 100644
--- a/enum.c
+++ b/enum.c
@@ -1546,7 +1546,7 @@ cycle_i(VALUE i, VALUE ary)
* forever. Enumerable#cycle saves elements in an internal array.
*
* 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.
*
*/