Skip to content

Commit

Permalink
[Truffle] Update IO read_nonblock default parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Fish committed Sep 6, 2016
1 parent faf9735 commit affe1ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions truffle/src/main/ruby/core/io.rb
Expand Up @@ -2104,8 +2104,7 @@ def read_all
#
# If the read buffer is not empty, read_nonblock reads from the
# buffer like readpartial. In this case, read(2) is not called.
def read_nonblock(size, buffer = undefined, exception: true)
buffer = nil if undefined.equal?(buffer)
def read_nonblock(size, buffer = nil, exception: true)

raise ArgumentError, "illegal read size" if size < 0
ensure_open
Expand Down

0 comments on commit affe1ce

Please sign in to comment.