Project

General

Profile

Backport #2628

1.9 Hash documentation says hashes not ordered

Added by ddfreyne (Denis Defreyne) over 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
[ruby-core:27694]

Description

=begin
The documentation for Hash says that hashes are not ordered, even though 1.9.x hashes are ordered. From the documentation (ri): “The order in which you traverse a hash by either key or value may seem arbitrary, and will generally not be in the insertion order.”

The documentation for Hash should be updated to reflect that they are ordered, and that iterating over keys or values or both will happen in order of insertion.
=end

History

#1

Updated by naruse (Yui NARUSE) over 9 years ago

  • Status changed from Open to Assigned
  • Assignee set to shyouhei (Shyouhei Urabe)

=begin
r25081
=end

#2

Updated by yugui (Yuki Sonoda) over 9 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

=begin
This issue was solved with changeset r27595.
Denis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

Also available in: Atom PDF