ruby-changes:62573
From: Nobuyoshi <ko1@a...>
Date: Fri, 14 Aug 2020 16:34:10 +0900 (JST)
Subject: [ruby-changes:62573] fee1b98fde (master): [DOC] fixed the method name
https://git.ruby-lang.org/ruby.git/commit/?id=fee1b98fde From fee1b98fde20eef7d5b7f717c5988fb2303f54a3 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Fri, 14 Aug 2020 16:33:47 +0900 Subject: [DOC] fixed the method name diff --git a/doc/fiber.rdoc b/doc/fiber.rdoc index 8d4bb42..8a107f5 100644 --- a/doc/fiber.rdoc +++ b/doc/fiber.rdoc @@ -65,17 +65,17 @@ public C interface: https://github.com/ruby/ruby/blob/trunk/doc/fiber.rdoc#L65 class Scheduler # Wrapper for rb_wait_readable(int) C function. def wait_readable_fd(fd) - wait_readable(::IO.from_fd(fd, autoclose: false)) + wait_readable(::IO.for_fd(fd, autoclose: false)) end # Wrapper for rb_wait_readable(int) C function. def wait_writable_fd(fd) - wait_writable(::IO.from_fd(fd, autoclose: false)) + wait_writable(::IO.for_fd(fd, autoclose: false)) end # Wrapper for rb_wait_for_single_fd(int) C function. def wait_for_single_fd(fd, events, duration) - wait_any(::IO.from_fd(fd, autoclose: false), events, duration) + wait_any(::IO.for_fd(fd, autoclose: false), events, duration) end end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/