From 7dc7aab4e9496b131f6355808bde1369dc7f1ab2 Mon Sep 17 00:00:00 2001 From: Cosmic Oppai Date: Mon, 18 Nov 2024 15:35:47 +0530 Subject: [ruby/timeout] updated doc string https://github.com/ruby/timeout/commit/4be6423de4 Co-authored-by: Jeremy Evans --- lib/timeout.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/timeout.rb b/lib/timeout.rb index ae3ac8c5ae..4ba07e7c5c 100644 --- a/lib/timeout.rb +++ b/lib/timeout.rb @@ -144,7 +144,7 @@ module Timeout # +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. -- cgit v1.2.3