Project

General

Profile

Bug #13161

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

Added by eric_duminil (Eric Duminil) over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
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

Associated revisions

Revision 559bef42
Added by nobu (Nobuyoshi Nakada) over 2 years ago

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 eric.duminil@gmail.com

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 57434
Added by nobu (Nobuyoshi Nakada) over 2 years ago

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 eric.duminil@gmail.com

Revision 57434
Added by nobu (Nobuyoshi Nakada) over 2 years ago

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 eric.duminil@gmail.com

Revision 57434
Added by nobu (Nobuyoshi Nakada) over 2 years ago

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 eric.duminil@gmail.com

Revision cfb3f0cc
Added by naruse (Yui NARUSE) over 2 years ago

merge revision(s) 57434: [Backport #13161]

    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 <eric.duminil@gmail.com>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@57876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 57876
Added by naruse (Yui NARUSE) over 2 years ago

merge revision(s) 57434: [Backport #13161]

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 <eric.duminil@gmail.com>

Revision b334883c
Added by nagachika (Tomoyuki Chikanaga) over 2 years ago

merge revision(s) 57434: [Backport #13161]

    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 <eric.duminil@gmail.com>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@58030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 58030
Added by nagachika (Tomoyuki Chikanaga) over 2 years ago

merge revision(s) 57434: [Backport #13161]

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 <eric.duminil@gmail.com>

Revision 0a1e5646
Added by usa (Usaku NAKAMURA) over 2 years ago

merge revision(s) 57434: [Backport #13161]

    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 <eric.duminil@gmail.com>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@58112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 58112
Added by usa (Usaku NAKAMURA) over 2 years ago

merge revision(s) 57434: [Backport #13161]

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 <eric.duminil@gmail.com>

History

#1

Updated by nobu (Nobuyoshi Nakada) over 2 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 eric.duminil@gmail.com

Updated by naruse (Yui NARUSE) over 2 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) over 2 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) over 2 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) over 2 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.

Also available in: Atom PDF