[前][次][番号順一覧][スレッド一覧]

ruby-changes:61397

From: Masataka <ko1@a...>
Date: Wed, 27 May 2020 15:37:20 +0900 (JST)
Subject: [ruby-changes:61397] 64c5bf5721 (master): Fix non-existent method reference in Enumerator.produce document (#3141)

https://git.ruby-lang.org/ruby.git/commit/?id=64c5bf5721

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


diff --git a/enumerator.c b/enumerator.c
index a83d076..8b1a7e5 100644
--- a/enumerator.c
+++ b/enumerator.c
@@ -2996,7 +2996,7 @@ producer_size(VALUE obj, VALUE args, VALUE eobj) https://github.com/ruby/ruby/blob/trunk/enumerator.c#L2996
  *   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
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]