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:
parent
a782d76fbe
commit
846a6bb60f
1 changed files with 1 additions and 1 deletions
2
re.c
2
re.c
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue