ruby-changes:72249
From: Nobuyoshi <ko1@a...>
Date: Mon, 20 Jun 2022 17:48:24 +0900 (JST)
Subject: [ruby-changes:72249] 914c26eab3 (master): [DOC] Regexp timeout is float or nil
https://git.ruby-lang.org/ruby.git/commit/?id=914c26eab3 From 914c26eab32b4664e981c7c604d1f17a56b10e28 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Mon, 20 Jun 2022 17:47:44 +0900 Subject: [DOC] Regexp timeout is float or nil --- re.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/re.c b/re.c index 6a6aa69cec..04dfe9dd03 100644 --- a/re.c +++ b/re.c @@ -3661,7 +3661,7 @@ rb_reg_match_p(VALUE re, VALUE str, long pos) https://github.com/ruby/ruby/blob/trunk/re.c#L3661 * regexp encoding is fixed to +ASCII_8BIT+. * * If optional keyword argument +timeout+ is given, - * its integer value overrides the timeout interval for the class, + * its float value overrides the timeout interval for the class, * Regexp.timeout. * * With argument +regexp+ given, returns a new regexp @@ -4323,7 +4323,7 @@ rb_reg_check_timeout(regex_t *reg, void *end_time_) https://github.com/ruby/ruby/blob/trunk/re.c#L4323 /* * call-seq: - * Regexp.timeout -> int or float or nil + * Regexp.timeout -> float or nil * * It returns the current default timeout interval for Regexp matching in second. * +nil+ means no default timeout configuration. @@ -4339,7 +4339,7 @@ rb_reg_s_timeout_get(VALUE dummy) https://github.com/ruby/ruby/blob/trunk/re.c#L4339 /* * call-seq: - * Regexp.timeout = int or float or nil + * Regexp.timeout = float or nil * * It sets the default timeout interval for Regexp matching in second. * +nil+ means no default timeout configuration. -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/