Actions
Bug #6107
closedDocumentation Abbrev (stdlib) confusing
    Bug #6107:
    Documentation Abbrev (stdlib) confusing
  
ruby -v:
ruby 1.9.3p0 (2011-10-30 revision 33570) [i686-linux] ruby 1.9.3p0 (2011-10-30 revision 33570) [i686-linux] 
Backport:
Description
The example in the documentation suggests Abbrev::abrev returns an Array. It does return a hash; the array is the result of the #sort method.
Files
        
          
          Updated by drbrain (Eric Hodel) over 13 years ago
          
          
        
        
      
      - Assignee set to drbrain (Eric Hodel)
 - Priority changed from 3 to Normal
 
        
          
          Updated by zmack (Andrei Bocan) over 13 years ago
          
          
        
        
      
      - File 0001-Fix-documentation-for-Abbrev-abbrev.patch added
 
Patch to fix this on trunk.
        
          
          Updated by zmack (Andrei Bocan) over 13 years ago
          
          
        
        
      
      - File 0001-Fix-documentation-for-Abbrev-abbrev.patch 0001-Fix-documentation-for-Abbrev-abbrev.patch added
 
Previous patch is bunk, please disregard.
Attached patch removes the sort from the example and updates the example output with the actual hash.
        
          
          Updated by shyouhei (Shyouhei Urabe) over 13 years ago
          
          
        
        
      
      - Status changed from Open to Assigned
 
        
          
          Updated by drbrain (Eric Hodel) over 13 years ago
          
          
        
        
      
      - File deleted (
0001-Fix-documentation-for-Abbrev-abbrev.patch) 
        
          
          Updated by drbrain (Eric Hodel) over 13 years ago
          
          
        
        
      
      - Status changed from Assigned to Closed
 - % Done changed from 0 to 100
 
This issue was solved with changeset r35290.
siep, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- lib/abbrev.rb:  Clarified that Abbrev.abbrev returns a Hash instead
of an Array. Patch by Andrei Bocan. [ruby-trunk - Bug #6107] 
Actions