summaryrefslogtreecommitdiff
path: root/enumerator.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-29 18:51:39 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-29 18:51:39 +0000
commit950a917600310912d949a1d6c3e2b49846c048ac (patch)
tree63c3185f9fcaf5098e27f11f8e6b3cbeaacc1271 /enumerator.c
parent106b437ceb2795d9f9289f50b02cd38c4285790d (diff)
* removed trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enumerator.c')
-rw-r--r--enumerator.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/enumerator.c b/enumerator.c
index 7f5b854449..bdf3bb80d2 100644
--- a/enumerator.c
+++ b/enumerator.c
@@ -22,7 +22,7 @@
*
* An enumerator can be created by following methods.
* - Kernel#to_enum
- * - Kernel#enum_for
+ * - Kernel#enum_for
* - Enumerator.new
*
* Also, most iteration methods without a block returns an enumerator.
@@ -72,7 +72,7 @@
* # convert o.each to an external iterator for
* # implementing an internal iterator.
* p ext_each(o.to_enum) {|*x| p x; [:b, *x] }
- * #=> [], [:b], [1], [:b, 1], [1, 2], [:b, 1, 2], 3
+ * #=> [], [:b], [1], [:b, 1], [1, 2], [:b, 1, 2], 3
*
*/
VALUE rb_cEnumerator;
@@ -600,18 +600,18 @@ enumerator_peek_values(VALUE obj)
*
* o = Object.new
* def o.each
- * yield
+ * yield
* yield 1
* yield 1, 2
* end
* e = o.to_enum
* p e.peek_values #=> []
- * e.next
+ * e.next
* p e.peek_values #=> [1]
* p e.peek_values #=> [1]
- * e.next
+ * e.next
* p e.peek_values #=> [1, 2]
- * e.next
+ * e.next
* p e.peek_values # raises StopIteration
*
*/
@@ -662,10 +662,10 @@ enumerator_peek(VALUE obj)
* o = Object.new
* def o.each
* # (2)
- * x = yield
+ * x = yield
* p x #=> "foo"
* # (5)
- * x = yield
+ * x = yield
* p x #=> nil
* # (7)
* x = yield
@@ -1061,7 +1061,7 @@ generator_each(VALUE obj)
* rescue StopIteration
* p $!.result #=> 100
* end
- *
+ *
*/
static VALUE
stop_result(VALUE self)