ruby-changes:15677
From: yugui <ko1@a...>
Date: Mon, 3 May 2010 12:08:43 +0900 (JST)
Subject: [ruby-changes:15677] Ruby:r27595 (ruby_1_9_1): merges r25081 from trunk into ruby_1_9_1.
yugui 2010-05-03 12:08:33 +0900 (Mon, 03 May 2010) New Revision: 27595 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27595 Log: 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] Modified files: branches/ruby_1_9_1/hash.c branches/ruby_1_9_1/version.h Index: ruby_1_9_1/hash.c =================================================================== --- ruby_1_9_1/hash.c (revision 27594) +++ ruby_1_9_1/hash.c (revision 27595) @@ -2573,9 +2573,8 @@ /* * A <code>Hash</code> is a collection of key-value pairs. It is * similar to an <code>Array</code>, except that indexing is done via - * arbitrary keys of any object type, not an integer index. 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. + * arbitrary keys of any object type, not an integer index. Hashes enumerate + * their values in the order that the corresponding keys were inserted. * * Hashes have a <em>default value</em> that is returned when accessing * keys that do not exist in the hash. By default, that value is Index: ruby_1_9_1/version.h =================================================================== --- ruby_1_9_1/version.h (revision 27594) +++ ruby_1_9_1/version.h (revision 27595) @@ -1,5 +1,5 @@ #define RUBY_VERSION "1.9.1" -#define RUBY_PATCHLEVEL 421 +#define RUBY_PATCHLEVEL 422 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 9 #define RUBY_VERSION_TEENY 1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/