Skip to content

Commit 24aaf30

Browse files
committed
1 parent 3ef48ef commit 24aaf30

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

enum.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5147,7 +5147,7 @@ enum_compact(VALUE obj)
51475147
* end
51485148
*
51495149
* The result of the size function should represent the number of iterations
5150-
* (i.e., the number of times Enumerator::Yielder#yield is called).
5150+
* (i.e., the number of times you yield to the block argument).
51515151
* In the above example, the block calls #yield three times, and
51525152
* the size function, +-> { 3 }+, returns 3 accordingly.
51535153
* The result of the size function can be an integer, +Float::INFINITY+,

enumerator.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4706,23 +4706,23 @@ InitVM_Enumerator(void)
47064706
rb_eStopIteration = rb_define_class("StopIteration", rb_eIndexError);
47074707
rb_define_method(rb_eStopIteration, "result", stop_result, 0);
47084708

4709-
/* Generator */
4709+
/* :nodoc: Generator */
47104710
rb_cGenerator = rb_define_class_under(rb_cEnumerator, "Generator", rb_cObject);
47114711
rb_include_module(rb_cGenerator, rb_mEnumerable);
47124712
rb_define_alloc_func(rb_cGenerator, generator_allocate);
47134713
rb_define_method(rb_cGenerator, "initialize", generator_initialize, -1);
47144714
rb_define_method(rb_cGenerator, "initialize_copy", generator_init_copy, 1);
47154715
rb_define_method(rb_cGenerator, "each", generator_each, -1);
47164716

4717-
/* Yielder */
4717+
/* :nodoc: Yielder */
47184718
rb_cYielder = rb_define_class_under(rb_cEnumerator, "Yielder", rb_cObject);
47194719
rb_define_alloc_func(rb_cYielder, yielder_allocate);
47204720
rb_define_method(rb_cYielder, "initialize", yielder_initialize, 0);
47214721
rb_define_method(rb_cYielder, "yield", yielder_yield, -2);
47224722
rb_define_method(rb_cYielder, "<<", yielder_yield_push, 1);
47234723
rb_define_method(rb_cYielder, "to_proc", yielder_to_proc, 0);
47244724

4725-
/* Producer */
4725+
/* :nodoc: Producer */
47264726
rb_cEnumProducer = rb_define_class_under(rb_cEnumerator, "Producer", rb_cObject);
47274727
rb_define_alloc_func(rb_cEnumProducer, producer_allocate);
47284728
rb_define_method(rb_cEnumProducer, "each", producer_each, 0);

0 commit comments

Comments
 (0)