Actions
Bug #13161
closed[DOC] Enumerable#{min,min_by,max,max_by} didn't mention they return a sorted array
    Bug #13161:
    [DOC] Enumerable#{min,min_by,max,max_by} didn't mention they return a sorted array
  
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
Backport:
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
        
           Updated by nobu (Nobuyoshi Nakada) almost 9 years ago
          Updated by nobu (Nobuyoshi Nakada) almost 9 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 8 years ago
          Updated by naruse (Yui NARUSE) over 8 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 8 years ago
          Updated by nagachika (Tomoyuki Chikanaga) over 8 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 8 years ago
          Updated by nagachika (Tomoyuki Chikanaga) over 8 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 8 years ago
          Updated by usa (Usaku NAKAMURA) over 8 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