Documentation Abbrev (stdlib) confusing
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.
Updated by zmack (Andrei Bocan) over 8 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 drbrain (Eric Hodel) over 8 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]