diff options
author | Sampat Badhe <[email protected]> | 2022-11-02 10:35:54 +0530 |
---|---|---|
committer | GitHub <[email protected]> | 2022-11-02 14:05:54 +0900 |
commit | d9cf0388599a3234b9f3c06ddd006cd59a58ab8b (patch) | |
tree | 6cea51edb0542c8f15f6b43261e364f576fc9241 /doc/regexp.rdoc | |
parent | 8e2c70af141239f5142642db35cee11c3d00bd24 (diff) |
Update Regexp.timeout doc (#6658)
* Correct Regexp.timeout doc, Timeout.timeout= => Regexp.timeout=
* add link Regexp Timeout section
Notes
Notes:
Merged-By: nobu <[email protected]>
Diffstat (limited to 'doc/regexp.rdoc')
-rw-r--r-- | doc/regexp.rdoc | 4 |
1 files 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 _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>: == 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 |