summaryrefslogtreecommitdiff
path: root/enum.c
diff options
context:
space:
mode:
authorAlan Wu <[email protected]>2024-10-10 12:20:37 -0400
committerAlan Wu <[email protected]>2024-10-10 12:32:47 -0400
commit5f3e9f185d354f17ba50510659fb3a766104e153 (patch)
tree19cfb5ed228a1aaff4d28bc46b15907d82b25018 /enum.c
parent25c4629ec33e49050f0b75f3f6407867bb5f27b3 (diff)
[DOC] Mention that Enumerable#each_with_index calls self.each
Diffstat (limited to 'enum.c')
-rw-r--r--enum.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/enum.c b/enum.c
index 495b01dfa0..6aec34d850 100644
--- a/enum.c
+++ b/enum.c
@@ -2998,7 +2998,8 @@ each_with_index_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, memo))
* each_with_index(*args) {|element, i| ..... } -> self
* each_with_index(*args) -> enumerator
*
- * With a block given, calls the block with each element and its index;
+ * Invoke <tt>self.each</tt> with <tt>*args</tt>.
+ * With a block given, the block receives each element and its index;
* returns +self+:
*
* h = {}