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

ruby-changes:59404

From: Marc-Andre <ko1@a...>
Date: Mon, 23 Dec 2019 15:57:06 +0900 (JST)
Subject: [ruby-changes:59404] dadf1255b6 (master): README: Add Range#minmax to the list of potential incompatibilities [#15929] [DOC]

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

From dadf1255b6e13578f888c239f0dc6fb201fd40bb Mon Sep 17 00:00:00 2001
From: Marc-Andre Lafortune <github@m...>
Date: Mon, 23 Dec 2019 01:55:39 -0500
Subject: README: Add Range#minmax to the list of potential incompatibilities
 [#15929] [DOC]


diff --git a/NEWS b/NEWS
index 28f7d04..2f249a0 100644
--- a/NEWS
+++ b/NEWS
@@ -621,6 +621,12 @@ StringScanner:: https://github.com/ruby/ruby/blob/trunk/NEWS#L621
 Proc::
   * Proc#to_s format was changed. [Feature #16101]
 
+Range::
+  * Range#minmax used to iterate on the range to determine the maximum.
+    It now uses the same algorithm as Range#max. In rare cases (e.g.
+    ranges of Float or Strings), this may yield different results.
+    [Bug #15929]
+
 === Stdlib compatibility issues (excluding feature bug fixes)
 
 * Promote stdlib to default gems
-- 
cgit v0.10.2


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

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