* Correct Regexp.timeout doc, Timeout.timeout= => Regexp.timeout=

* add link Regexp Timeout section
This commit is contained in:
Sampat Badhe 2022-11-02 10:35:54 +05:30 коммит произвёл GitHub
Родитель 8e2c70af14
Коммит d9cf038859
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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