summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-04 04:17:26 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-04 04:17:26 +0000
commit4f51d814183316c3e97da1dc13cf6945b5a76f2f (patch)
tree3ab2686a359f6cbdda8446d7382f9aa541c2490a /io.c
parent5a8bfc39f132708bcf3ee2970e9f55ee6d101b65 (diff)
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/io.c b/io.c
index cbc4719094..725e072fd9 100644
--- a/io.c
+++ b/io.c
@@ -2938,11 +2938,7 @@ rb_io_s_pipe()
r = prep_stdio(rb_fdopen(pipes[0], "r"), FMODE_READABLE, rb_cIO);
w = prep_stdio(rb_fdopen(pipes[1], "w"), FMODE_WRITABLE|FMODE_SYNC, rb_cIO);
- ary = rb_ary_new2(2);
- rb_ary_push(ary, r);
- rb_ary_push(ary, w);
-
- return ary;
+ return rb_assoc_new(r, w);
#else
rb_notimplement();
return Qnil; /* not reached */