summaryrefslogtreecommitdiff
path: root/range.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 /range.c
parent49ca241d6d5f589dec8f42fecdc8ecb96690b859 (diff)
[DOC] Harmonize #== methods (#15805)
Diffstat (limited to 'range.c')
-rw-r--r--range.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/range.c b/range.c
index c8a4b9938b..fd08a81de7 100644
--- a/range.c
+++ b/range.c
@@ -154,14 +154,14 @@ recursive_equal(VALUE range, VALUE obj, int recur)
* call-seq:
* self == other -> true or false
*
- * Returns +true+ if and only if:
+ * Returns whether all of the following are true:
*
* - +other+ is a range.
* - <tt>other.begin == self.begin</tt>.
* - <tt>other.end == self.end</tt>.
* - <tt>other.exclude_end? == self.exclude_end?</tt>.
*
- * Otherwise returns +false+.
+ * Examples:
*
* r = (1..5)
* r == (1..5) # => true