We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0414b9a commit 697c6e4Copy full SHA for 697c6e4
lib/truffle/stringio.rb
@@ -522,7 +522,7 @@ def sync=(val)
522
val
523
end
524
525
- def sysread(length = nil, buffer = '')
+ def sysread(length = nil, buffer = nil)
526
str = read(length, buffer)
527
528
if str.nil?
@@ -534,7 +534,7 @@ def sysread(length = nil, buffer = '')
534
535
alias_method :readpartial, :sysread
536
537
- def read_nonblock(length, buffer = '', exception: true)
+ def read_nonblock(length, buffer = nil, exception: true)
538
539
540
if exception and str.nil?
0 commit comments