Issue #6107 has been updated by Andrei Bocan.

File 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.
----------------------------------------
Bug #6107: Documentation Abbrev (stdlib) confusing
https://bugs.ruby-lang.org/issues/6107#change-24649

Author: siep korteling
Status: Open
Priority: Normal
Assignee: Eric Hodel
Category: 
Target version: 
ruby -v: ruby 1.9.3p0 (2011-10-30 revision 33570) [i686-linux] ruby 1.9.3p0 (2011-10-30 revision 33570) [i686-linux] 


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.


-- 
http://bugs.ruby-lang.org/