Project

General

Profile

Backport #2628

1.9 Hash documentation says hashes not ordered

Added by ddfreyne (Denis Defreyne) about 11 years ago. Updated almost 10 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

Also available in: Atom PDF