From 4be6423de4fb144a9aa255ba541683b9c0fb16a4 Mon Sep 17 00:00:00 2001 From: Cosmic Oppai Date: Mon, 18 Nov 2024 15:35:47 +0530 Subject: [PATCH] updated doc string Co-authored-by: Jeremy Evans --- lib/timeout.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/timeout.rb b/lib/timeout.rb index def80df..23fbc3b 100644 --- a/lib/timeout.rb +++ b/lib/timeout.rb @@ -144,7 +144,7 @@ def self.ensure_timeout_thread_created # +sec+:: Number of seconds to wait for the block to terminate. Any non-negative number # or nil may be used, including Floats to specify fractional seconds. A # value of 0 or +nil+ will execute the block without any timeout. - # Any negative value will raise the ArgumentError + # Any negative number will raise an ArgumentError. # +klass+:: Exception Class to raise if the block fails to terminate # in +sec+ seconds. Omitting will use the default, Timeout::Error # +message+:: Error message to raise with Exception Class.