1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Update call-seq of ARGF.read_nonblock

ARGF.read_nonblock supports `exception: false' like IO#read_nonblock
since 2.3.0.
[Feature #11358]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kazu 2017-10-24 12:10:32 +00:00
parent 177856b8a7
commit 9885c1c79f

4
io.c
View file

@ -11856,8 +11856,8 @@ argf_readpartial(int argc, VALUE *argv, VALUE argf)
/*
* call-seq:
* ARGF.read_nonblock(maxlen) -> string
* ARGF.read_nonblock(maxlen, outbuf) -> outbuf
* ARGF.read_nonblock(maxlen[, options]) -> string
* ARGF.read_nonblock(maxlen, outbuf[, options]) -> outbuf
*
* Reads at most _maxlen_ bytes from the ARGF stream in non-blocking mode.
*/