diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-03-03 16:02:02 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-03-06 13:57:17 +0900 |
commit | a5310e609d76ee71e0ff39d5145609853586206e (patch) | |
tree | b1e1063d097667fcdea81adcbf2f3e4188123558 /re.c | |
parent | 8ee604b9d4daa46a1571221dcd9ceab824ac372d (diff) |
[DOC] Fix options of `Regexp#initialize`
`Integer#|` is bit-wise OR operator, not logical OR.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7435
Diffstat (limited to 're.c')
-rw-r--r-- | re.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: * |