From ae2578f6bc3f62bc4bc768be602067bd536fd3fe Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 21 Oct 2017 06:45:41 +0000 Subject: [PATCH] [DOC] describe methods used for src and dst argument. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/io.c b/io.c index e4c7763572..491442bd28 100644 --- a/io.c +++ b/io.c @@ -11017,7 +11017,12 @@ copy_stream_finalize(VALUE arg) * IO.copy_stream(src, dst, copy_length, src_offset) * * IO.copy_stream copies src to dst. - * src and dst is either a filename or an IO. + * src and dst is either a filename or an IO-like object. + * IO-like object for src should have readpartial or + * read method. + * IO-like object for dst should have write method. + * (Specialized mechanisms, such as sendfile system call, may be used + * on appropriate situation.) * * This method returns the number of bytes copied. *