diff --git a/ChangeLog b/ChangeLog index cffb0c35eb..eded2eca5a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Fri Oct 13 01:05:58 2006 Yukihiro Matsumoto + + * string.c (rb_str_partition): RDoc update. a patch from + Mauricio Fernandez . [ruby-core:09160] + + * hash.c (rb_hash_compare_by_id): ditto. + Fri Oct 13 00:34:26 2006 Yukihiro Matsumoto * object.c (rb_mod_cvar_defined): wrong id check. a patch from diff --git a/hash.c b/hash.c index 81dbab29fa..5f578fa299 100644 --- a/hash.c +++ b/hash.c @@ -1555,7 +1555,7 @@ static struct st_hash_type identhash = { * will consider exact same objects as same keys. * * h1 = { "a" => 100, "b" => 200, :c => "c" } - * h1["a"] #=> "a" + * h1["a"] #=> 100 * h1.compare_by_identity * h1.compare_by_identity? #=> true * h1["a"] #=> nil # different objects. diff --git a/string.c b/string.c index 0da225d3a8..b7466f9177 100644 --- a/string.c +++ b/string.c @@ -4414,13 +4414,10 @@ rb_str_center(int argc, VALUE *argv, VALUE str) /* * call-seq: - * str.partition {| obj | block } => [true_array, false_array] * str.partition(sep) => [head, sep, tail] * - * If a block is given, returns two arrays of true elements and false - * elements classified by the block evaluation. Otherwise, searches - * sep in the string and returns the part before it, the - * sep, and the part after it. If sep is not found, + * Searches the string for sep and returns the part before + * it, the sep, and the part after it. If sep is not found, * returns str and two empty strings. * * "hello".partition("l") #=> ["he", "l", "lo"]