[DOC] Fix options of Regexp#initialize

`Integer#|` is bit-wise OR operator, not logical OR.
This commit is contained in:
Nobuyoshi Nakada 2023-03-03 16:02:02 +09:00
parent 8ee604b9d4
commit a5310e609d
Notes: git 2023-03-06 04:57:38 +00:00

2
re.c
View File

@ -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', '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::NOENCODING:
*