From d863f4bccdd1b5566fbdbe87af766e54b995f8af Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 18 May 2020 10:43:26 +0900 Subject: [Feature #16254] Use `__builtin.func` style --- io.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'io.rb') diff --git a/io.rb b/io.rb index 1b6dddf9e5..5b304eee95 100644 --- a/io.rb +++ b/io.rb @@ -60,7 +60,7 @@ class IO # return the symbol +:wait_readable+ instead. At EOF, it will return nil # instead of raising EOFError. def read_nonblock(len, buf = nil, exception: true) - __builtin_io_read_nonblock(len, buf, exception) + __builtin.io_read_nonblock(len, buf, exception) end # call-seq: @@ -118,6 +118,6 @@ class IO # that write_nonblock should not raise an IO::WaitWritable exception, but # return the symbol +:wait_writable+ instead. def write_nonblock(buf, exception: true) - __builtin_io_write_nonblock(buf, exception) + __builtin.io_write_nonblock(buf, exception) end end -- cgit v1.2.3