Issue #13161 has been reported by Eric Duminil.

----------------------------------------
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

* Author: Eric Duminil
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
* 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>