[前][次][番号順一覧][スレッド一覧]

ruby-changes:25665

From: nobu <ko1@a...>
Date: Mon, 19 Nov 2012 16:55:05 +0900 (JST)
Subject: [ruby-changes:25665] nobu:r37722 (trunk): struct.c: fix typo

nobu	2012-11-19 16:54:53 +0900 (Mon, 19 Nov 2012)

  New Revision: 37722

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=37722

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

  Modified files:
    trunk/struct.c

Index: struct.c
===================================================================
--- struct.c	(revision 37721)
+++ struct.c	(revision 37722)
@@ -497,7 +497,7 @@
     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;
 }

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]