From a5310e609d76ee71e0ff39d5145609853586206e Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 3 Mar 2023 16:02:02 +0900 Subject: [PATCH] [DOC] Fix options of `Regexp#initialize` `Integer#|` is bit-wise OR operator, not logical OR. --- re.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/re.c b/re.c index e62712ede2..6babf2b17b 100644 --- a/re.c +++ b/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', '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: *