summaryrefslogtreecommitdiff
path: root/enumerator.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-19 20:26:38 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-19 20:26:38 +0000
commitce46bc63456390a66c7589d3591dab1e55e27561 (patch)
tree89a27067fde6e3c29fad529df3f0539ba43f7e12 /enumerator.c
parentfb99416115e8e48e6ac8aefefa6221cf572024ad (diff)
downloadruby-ce46bc63456390a66c7589d3591dab1e55e27561.tar.gz
rdoc update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enumerator.c')
-rw-r--r--enumerator.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/enumerator.c b/enumerator.c
index ad49de8820..2feb24ca20 100644
--- a/enumerator.c
+++ b/enumerator.c
@@ -625,13 +625,12 @@ next_init(VALUE obj, struct enumerator *e)
* p e.next
* p e.next
*
- * # result
- * # next_values next
- * # [] nil
- * # [1] 1
- * # [1, 2] [1, 2]
- * # [nil] nil
- * # [[1, 2]] [1, 2]
+ * ## yield args next_values next
+ * # yield [] nil
+ * # yield 1 [1] 1
+ * # yield 1, 2 [1, 2] [1, 2]
+ * # yield nil [nil] nil
+ * # yield [1, 2] [[1, 2]] [1, 2]
*
* Note that enumeration sequence by next_values method does not affect other
* non-external enumeration methods, unless underlying iteration