summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authorBurdette Lamar <BurdetteLamar@Yahoo.com>2026-01-06 16:13:15 -0600
committerGitHub <noreply@github.com>2026-01-06 17:13:15 -0500
commit58fb95af36c86b00b134db5275becf7455ba4790 (patch)
tree36ceb4e9803a78fd645fd73c704a7b22674aaa28 /re.c
parent49ca241d6d5f589dec8f42fecdc8ecb96690b859 (diff)
[DOC] Harmonize #== methods (#15805)
Diffstat (limited to 're.c')
-rw-r--r--re.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/re.c b/re.c
index f8672d1d7c..fe8e93c6a6 100644
--- a/re.c
+++ b/re.c
@@ -3544,10 +3544,10 @@ reg_hash(VALUE re)
/*
* call-seq:
- * regexp == object -> true or false
+ * self == other -> true or false
*
- * Returns +true+ if +object+ is another \Regexp whose pattern,
- * flags, and encoding are the same as +self+, +false+ otherwise:
+ * Returns whether +other+ is another \Regexp whose pattern,
+ * flags, and encoding are the same as +self+:
*
* /foo/ == Regexp.new('foo') # => true
* /foo/ == /foo/i # => false
@@ -3599,11 +3599,11 @@ match_hash(VALUE match)
/*
* call-seq:
- * matchdata == object -> true or false
+ * self == other -> true or false
*
- * Returns +true+ if +object+ is another \MatchData object
+ * Returns whether +other+ is another \MatchData object
* whose target string, regexp, match, and captures
- * are the same as +self+, +false+ otherwise.
+ * are the same as +self+.
*/
static VALUE