* hash.c (each_i): typo fixed. [ruby-dev:26622]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2005-07-28 08:16:34 +00:00
parent 727e443c4b
commit cb8f27017e
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Thu Jul 28 17:14:01 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
* hash.c (each_i): typo fixed. [ruby-dev:26622]
Thu Jul 28 15:04:11 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (f_arg): better argument name duplication check

2
hash.c
View File

@ -1086,7 +1086,7 @@ each_i(key, value)
VALUE key, value;
{
if (key == Qundef) return ST_CONTINUE;
rb_yield(rb_assoc(key, value));
rb_yield(rb_assoc_new(key, value));
return ST_CONTINUE;
}