ruby-changes:74319
From: Sampat <ko1@a...>
Date: Wed, 2 Nov 2022 14:06:12 +0900 (JST)
Subject: [ruby-changes:74319] d9cf038859 (master): Update Regexp.timeout doc (#6658)
https://git.ruby-lang.org/ruby.git/commit/?id=d9cf038859 From d9cf0388599a3234b9f3c06ddd006cd59a58ab8b Mon Sep 17 00:00:00 2001 From: Sampat Badhe <sampat.badhe@k...> Date: Wed, 2 Nov 2022 10:35:54 +0530 Subject: Update Regexp.timeout doc (#6658) * Correct Regexp.timeout doc, Timeout.timeout= => Regexp.timeout= * add link Regexp Timeout section --- doc/regexp.rdoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/regexp.rdoc b/doc/regexp.rdoc index d623487a98..92c7ecf66e 100644 --- a/doc/regexp.rdoc +++ b/doc/regexp.rdoc @@ -28,7 +28,7 @@ Specifically, <tt>/st/</tt> requires that the string contains the letter https://github.com/ruby/ruby/blob/trunk/doc/regexp.rdoc#L28 _s_ followed by the letter _t_, so it matches _haystack_, also. Note that any Regexp matching will raise a RuntimeError if timeout is set and -exceeded. See "Timeout" section in detail. +exceeded. See {"Timeout"}[#label-Timeout] section in detail. == \Regexp Interpolation @@ -781,7 +781,7 @@ with <i>a{0,29}</i>: https://github.com/ruby/ruby/blob/trunk/doc/regexp.rdoc#L781 == Timeout -There are two APIs to set timeout. One is Timeout.timeout=, which is +There are two APIs to set timeout. One is Regexp.timeout=, which is process-global configuration of timeout for Regexp matching. Regexp.timeout = 3 -- cgit v1.2.3 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/