aboutsummaryrefslogtreecommitdiffstats
path: root/enumerator.c
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-08-24 14:05:19 -0700
committerJeremy Evans <code@jeremyevans.net>2019-08-24 14:05:19 -0700
commit04735c48ab44c97cbfd5a5cd37f9a1696e2f5a2b (patch)
tree3a0e3e5880f82fc5be8d2c6f982180263d309589 /enumerator.c
parente1c991f8d783440411e5bf4faf3f0923cef4a0e1 (diff)
downloadruby-04735c48ab44c97cbfd5a5cd37f9a1696e2f5a2b.tar.gz
Minor documentation fixes [ci skip]
From zverok (Victor Shepelev) Fixes [Misc #16126]
Diffstat (limited to 'enumerator.c')
-rw-r--r--enumerator.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/enumerator.c b/enumerator.c
index 66d689f7ee..6a2443fcaf 100644
--- a/enumerator.c
+++ b/enumerator.c
@@ -26,8 +26,8 @@
* A class which allows both internal and external iteration.
*
* An Enumerator can be created by the following methods.
- * - Kernel#to_enum
- * - Kernel#enum_for
+ * - Object#to_enum
+ * - Object#enum_for
* - Enumerator.new
*
* Most methods have two forms: a block form where the contents
@@ -417,7 +417,7 @@ enumerator_init(VALUE enum_obj, VALUE obj, VALUE meth, int argc, const VALUE *ar
* In the second, deprecated, form, a generated Enumerator iterates over the
* given object using the given method with the given arguments passed.
*
- * Use of this form is discouraged. Use Kernel#enum_for or Kernel#to_enum
+ * Use of this form is discouraged. Use Object#enum_for or Object#to_enum
* instead.
*
* e = Enumerator.new(ObjectSpace, :each_object)
@@ -1862,7 +1862,7 @@ lazy_to_enum_i(VALUE obj, VALUE meth, int argc, const VALUE *argv, rb_enumerator
*
* For example, continuing from the example in Object#to_enum:
*
- * # See Kernel#to_enum for the definition of repeat
+ * # See Object#to_enum for the definition of repeat
* r = 1..Float::INFINITY
* r.repeat(2).first(5) # => [1, 1, 2, 2, 3]
* r.repeat(2).class # => Enumerator