Project

General

Profile

Actions

Bug #13161

closed

[DOC] Enumerable#{min,min_by,max,max_by} didn't mention they return a sorted array

Added by eric_duminil (Eric Duminil) about 7 years ago. Updated about 7 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
[ruby-core:79274]

Description

  • 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) 0001-DOC-Enumerable-min-min_by-max-max_by.patch Documentation Patch eric_duminil (Eric Duminil), 01/26/2017 09:10 PM
Actions #1

Updated by nobu (Nobuyoshi Nakada) about 7 years ago

  • Status changed from Open to Closed

Applied in changeset r57434.


Enumerable#{min,min_by,max,max_by} [ci skip]

  • enum.c: [DOC] Enumerable#{min,min_by,max,max_by} return a sorted
    array when +n+ argument is used.

  • enum.c: Small typo : minimum -> maximum

[Bug #13161]
Author: Eric Duminil

Updated by naruse (Yui NARUSE) about 7 years ago

  • Backport changed from 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN to 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: DONE

ruby_2_4 r57876 merged revision(s) 57434.

Updated by nagachika (Tomoyuki Chikanaga) about 7 years ago

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

Updated by nagachika (Tomoyuki Chikanaga) about 7 years ago

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

Updated by usa (Usaku NAKAMURA) about 7 years ago

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

ruby_2_2 r58112 merged revision(s) 57434.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0