Skip to content

Commit

Permalink
Fix return value type for IO#wait_writable
Browse files Browse the repository at this point in the history
`IO#wait_writable` does not return bool unlike `IO#wait_readable`.
https://docs.ruby-lang.org/en/3.1/IO.html#method-i-wait_writable
  • Loading branch information
koic committed Mar 29, 2022
1 parent c6325af commit a27a6f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/io/wait.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ class IO
# -->
# Waits until IO is writable and returns `true` or `false` when times out.
#
def wait_writable: (?Numeric? timeout) -> (self | bool | nil)?
def wait_writable: (?Numeric? timeout) -> (self | nil)?
end

0 comments on commit a27a6f4

Please sign in to comment.