diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-07-04 04:17:26 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-07-04 04:17:26 +0000 |
commit | 4f51d814183316c3e97da1dc13cf6945b5a76f2f (patch) | |
tree | 3ab2686a359f6cbdda8446d7382f9aa541c2490a /io.c | |
parent | 5a8bfc39f132708bcf3ee2970e9f55ee6d101b65 (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.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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 */ |