Skip to content

Commit b67fbc0

Browse files
committed
merges r25081 from trunk into ruby_1_9_1.
fixes [ruby-core:27694], reported by Denis Defreyne. -- * hash.c (Hash#each): Fix documentation to reflect insertion order. A patch by Run Paint Run Run [ruby-core:23644] and [ruby-core:21231] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@27595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 8fd9bb4 commit b67fbc0

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

hash.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2573,9 +2573,8 @@ env_update(VALUE env, VALUE hash)
25732573
/*
25742574
* A <code>Hash</code> is a collection of key-value pairs. It is
25752575
* similar to an <code>Array</code>, except that indexing is done via
2576-
* arbitrary keys of any object type, not an integer index. The order
2577-
* in which you traverse a hash by either key or value may seem
2578-
* arbitrary, and will generally not be in the insertion order.
2576+
* arbitrary keys of any object type, not an integer index. Hashes enumerate
2577+
* their values in the order that the corresponding keys were inserted.
25792578
*
25802579
* Hashes have a <em>default value</em> that is returned when accessing
25812580
* keys that do not exist in the hash. By default, that value is

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#define RUBY_VERSION "1.9.1"
2-
#define RUBY_PATCHLEVEL 421
2+
#define RUBY_PATCHLEVEL 422
33
#define RUBY_VERSION_MAJOR 1
44
#define RUBY_VERSION_MINOR 9
55
#define RUBY_VERSION_TEENY 1

0 commit comments

Comments
 (0)