diff options
| author | Burdette Lamar <BurdetteLamar@Yahoo.com> | 2026-01-06 16:13:15 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-06 17:13:15 -0500 |
| commit | 58fb95af36c86b00b134db5275becf7455ba4790 (patch) | |
| tree | 36ceb4e9803a78fd645fd73c704a7b22674aaa28 /re.c | |
| parent | 49ca241d6d5f589dec8f42fecdc8ecb96690b859 (diff) | |
[DOC] Harmonize #== methods (#15805)
Diffstat (limited to 're.c')
| -rw-r--r-- | re.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 |
