aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-03 12:30:04 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-03 12:30:04 +0000
commitb16f9112ed8b85552db2b04821f1ec338e07913e (patch)
treec8f10a31bd9da1fa0162164992cfdd0a668047c6 /io.c
parent8109114b18f76d8427f701c3705186632609be01 (diff)
downloadruby-b16f9112ed8b85552db2b04821f1ec338e07913e.tar.gz
Fix arguments order of IO#pwrite
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index 3ac6b97a0e..bd21e9460e 100644
--- a/io.c
+++ b/io.c
@@ -4945,7 +4945,7 @@ internal_pwrite_func(void *ptr)
* File.read("out") #=> "\u0000\u0000\u0000ABCDEF"
*/
static VALUE
-rb_io_pwrite(VALUE io, VALUE offset, VALUE str)
+rb_io_pwrite(VALUE io, VALUE str, VALUE offset)
{
rb_io_t *fptr;
ssize_t n;