summaryrefslogtreecommitdiff
path: root/struct.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-19 07:54:53 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-19 07:54:53 +0000
commit92cef134b54fadb79e5d338a3aea1b51ff500386 (patch)
tree74fa29731fb05d9379855f24cf27d03562fa6006 /struct.c
parent7588c674d52791a15fa7631ba2628d6547ad1185 (diff)
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
Diffstat (limited to 'struct.c')
-rw-r--r--struct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/struct.c b/struct.c
index 7f01acbb88..1de9bbed81 100644
--- a/struct.c
+++ b/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;
}