summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-03-03 16:02:02 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-03-06 13:57:17 +0900
commita5310e609d76ee71e0ff39d5145609853586206e (patch)
treeb1e1063d097667fcdea81adcbf2f3e4188123558 /re.c
parent8ee604b9d4daa46a1571221dcd9ceab824ac372d (diff)
downloadruby-a5310e609d76ee71e0ff39d5145609853586206e.tar.gz
[DOC] Fix options of `Regexp#initialize`
`Integer#|` is bit-wise OR operator, not logical OR.
Diffstat (limited to 're.c')
-rw-r--r--re.c2
1 files changed, 1 insertions, 1 deletions
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:
*