From 64c5bf572187f602d06132d4fa18dcd4b425aa22 Mon Sep 17 00:00:00 2001
From: Masataka Pocke Kuwabara <kuwabara@pocke.me>
Date: Wed, 27 May 2020 15:37:05 +0900
Subject: [PATCH] Fix non-existent method reference in Enumerator.produce
 document (#3141)

---
 enumerator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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