1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[DOC] Fix a typo [ci skip]

This commit is contained in:
Kazuhiro NISHIYAMA 2022-06-26 14:17:14 +09:00
parent a782d76fbe
commit 846a6bb60f
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A

2
re.c
View file

@ -3703,7 +3703,7 @@ str_to_option(VALUE str)
* +timeout+ keyword.
*
* options = Regexp::MULTILINE
* r = Regexp.new('foo', optinos, timeout: 1.1) # => /foo/m
* r = Regexp.new('foo', options, timeout: 1.1) # => /foo/m
* r2 = Regexp.new(r) # => /foo/m
* r2.timeout # => 1.1
* r3 = Regexp.new(r, timeout: 3.14) # => /foo/m