aboutsummaryrefslogtreecommitdiffstats
path: root/enumerator.c
diff options
context:
space:
mode:
authorMasataka Pocke Kuwabara <kuwabara@pocke.me>2020-05-27 15:37:05 +0900
committerGitHub <noreply@github.com>2020-05-26 23:37:05 -0700
commit64c5bf572187f602d06132d4fa18dcd4b425aa22 (patch)
tree0021aba4bbc6f09130e41f87ce6dde77449527d0 /enumerator.c
parent9d71373c237876038cbac63bb0132907a78288a2 (diff)
downloadruby-64c5bf572187f602d06132d4fa18dcd4b425aa22.tar.gz
Fix non-existent method reference in Enumerator.produce document (#3141)
Diffstat (limited to 'enumerator.c')
-rw-r--r--enumerator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/enumerator.c b/enumerator.c
index a83d0767d8..8b1a7e543a 100644
--- a/enumerator.c
+++ b/enumerator.c
@@ -2996,7 +2996,7 @@ producer_size(VALUE obj, VALUE args, VALUE eobj)
* enclosing_section = ancestors.find { |n| n.type == :section }
*
* Using ::produce together with Enumerable methods like Enumerable#detect,
- * Enumerable#slice, Enumerable#take_while can provide Enumerator-based alternatives
+ * Enumerable#slice_after, Enumerable#take_while can provide Enumerator-based alternatives
* for +while+ and +until+ cycles:
*
* # Find next Tuesday