struct.c: fix typo

* struct.c (rb_struct_each_pair): fix typo.  [Bug #7382]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-11-19 07:54:53 +00:00
parent 7588c674d5
commit 92cef134b5
1 changed files with 1 additions and 1 deletions

View File

@ -497,7 +497,7 @@ rb_struct_each_pair(VALUE s)
for (i=0; i<RSTRUCT_LEN(s); i++) { for (i=0; i<RSTRUCT_LEN(s); i++) {
VALUE key = rb_ary_entry(members, i); VALUE key = rb_ary_entry(members, i);
VALUE value = RSTRUCT_PTR(s)[i]; VALUE value = RSTRUCT_PTR(s)[i];
rb_yield(rb_assoc_new(key, vlaue)); rb_yield(rb_assoc_new(key, value));
} }
return s; return s;
} }