summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorTanaka Akira <[email protected]>2024-06-02 23:24:08 +0900
committerTanaka Akira <[email protected]>2024-06-02 23:24:08 +0900
commitd05d03b1866944e3d8f82d809b3370e7cf5e253e (patch)
treebe781668d80caab0c2da8b1e0329b8e0141f0f07 /io.c
parente1c9e6244b38f43496400863f610e53c36709589 (diff)
IO.select accepts a numeric value as timeout.
[DOC] IO.select accepts a numeric value as timeout, not only an integer.
Diffstat (limited to 'io.c')
-rw-r--r--io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/io.c b/io.c
index 9ef2892854..8acb1f562e 100644
--- a/io.c
+++ b/io.c
@@ -10890,7 +10890,8 @@ rb_io_advise(int argc, VALUE *argv, VALUE io)
* Each of the arguments +read_ios+, +write_ios+, and +error_ios+
* is an array of IO objects.
*
- * Argument +timeout+ is an integer timeout interval in seconds.
+ * Argument +timeout+ is a numeric value (such as integer or float) timeout
+ * interval in seconds.
*
* The method monitors the \IO objects given in all three arrays,
* waiting for some to be ready;