[DOC] Fix options of Regexp#initialize
`Integer#|` is bit-wise OR operator, not logical OR.
This commit is contained in:
parent
8ee604b9d4
commit
a5310e609d
Notes:
git
2023-03-06 04:57:38 +00:00
2
re.c
2
re.c
@ -3859,7 +3859,7 @@ void rb_warn_deprecated_to_remove(const char *removal, const char *fmt, const ch
|
|||||||
* Regexp.new('foo', 'i') # => /foo/i
|
* Regexp.new('foo', 'i') # => /foo/i
|
||||||
* Regexp.new('foo', 'im') # => /foo/im
|
* Regexp.new('foo', 'im') # => /foo/im
|
||||||
*
|
*
|
||||||
* - The logical OR of one or more of the constants
|
* - The bit-wise OR of one or more of the constants
|
||||||
* Regexp::EXTENDED, Regexp::IGNORECASE, Regexp::MULTILINE, and
|
* Regexp::EXTENDED, Regexp::IGNORECASE, Regexp::MULTILINE, and
|
||||||
* Regexp::NOENCODING:
|
* Regexp::NOENCODING:
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user