mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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:
parent
7588c674d5
commit
92cef134b5
1 changed files with 1 additions and 1 deletions
2
struct.c
2
struct.c
|
@ -497,7 +497,7 @@ rb_struct_each_pair(VALUE s)
|
|||
for (i=0; i<RSTRUCT_LEN(s); i++) {
|
||||
VALUE key = rb_ary_entry(members, i);
|
||||
VALUE value = RSTRUCT_PTR(s)[i];
|
||||
rb_yield(rb_assoc_new(key, vlaue));
|
||||
rb_yield(rb_assoc_new(key, value));
|
||||
}
|
||||
return s;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue