From: Andrei Bocan Date: 2012-03-16T19:42:00+09:00 Subject: [ruby-core:43343] [ruby-trunk - Bug #6107] Documentation Abbrev (stdlib) confusing 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/