[ruby-core:80240] [Ruby trunk Bug#13161] [DOC] Enumerable#{min, min_by, max, max_by} didn't mention they return a sorted array

From: nagachika00@...
Date: 2017-03-19 21:45:50 UTC
List: ruby-core #80240
Issue #13161 has been updated by nagachika (Tomoyuki Chikanaga).

Backport changed from 2.2: REQUIRED, 2.3: REQUIRED, 2.4: DONE to 2.2: REQUIRED, 2.3: DONE, 2.4: DONE

ruby_2_3 r58030 merged revision(s) 57434.

----------------------------------------
Bug #13161: [DOC] Enumerable#{min,min_by,max,max_by} didn't mention they return a sorted array
https://bugs.ruby-lang.org/issues/13161#change-63679

* Author: eric_duminil (Eric Duminil)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
* Backport: 2.2: REQUIRED, 2.3: DONE, 2.4: DONE
----------------------------------------
* Enumerable#{min,min_by,max,max_by} return a sorted array when +n+ argument is used. This isn't mentioned from the current documentation.
* "minimum n elements" in Enumerable#max_by should be "maximum n elements"

---Files--------------------------------
0001-DOC-Enumerable-min-min_by-max-max_by.patch (2.42 KB)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next