summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-08-23 17:49:08 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-08-23 17:49:08 +0000
commitb09014e3938c1707d823493fe699dffeb66d6b51 (patch)
treee477826615248eb0ec7e55f848f80cb9f5344e02
parent0c6508d2181dde9ba4ccb6f3e7ff9a3ba02ad77b (diff)
downloadruby-b09014e3938c1707d823493fe699dffeb66d6b51.tar.gz
ruby-b09014e3938c1707d823493fe699dffeb66d6b51.tar.xz
ruby-b09014e3938c1707d823493fe699dffeb66d6b51.zip
fix typo.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--enum.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b39280095..049397364 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Thu Aug 23 21:59:38 2001 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
+
+ * enum.c (sort_by_i): fix typo.
+
Thu Aug 23 10:10:59 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (is_defined): should not dump core for "defined?(())".
diff --git a/enum.c b/enum.c
index d79178d39..e6bfb9bd9 100644
--- a/enum.c
+++ b/enum.c
@@ -208,7 +208,7 @@ sort_by_i(i, memo)
VALUE i;
NODE *memo;
{
- VALUE e = rb_ary_new3(3, rb_yield(e), INT2NUM(memo->u3.cnt), i);
+ VALUE e = rb_ary_new3(3, rb_yield(i), INT2NUM(memo->u3.cnt), i);
rb_ary_push(memo->u1.value, e);
memo->u3.cnt++;
return Qnil;