summaryrefslogtreecommitdiff
path: root/range.c
diff options
context:
space:
mode:
Diffstat (limited to 'range.c')
-rw-r--r--range.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/range.c b/range.c
index 9e55e89c5f..157069daa5 100644
--- a/range.c
+++ b/range.c
@@ -2394,14 +2394,14 @@ empty_region_p(VALUE beg, VALUE end, int excl)
* This method assumes that there is no minimum value because
* Ruby lacks a standard method for determining minimum values.
* This assumption is invalid.
- * For example, there is no value smaller than +-Float::INFINITY+,
- * making +(...-Float::INFINITY)+ an empty set.
- * Consequently, +(...-Float::INFINITY)+ has no elements in common with itself,
- * yet +(...-Float::INFINITY).overlap?((...-Float::INFINITY))+ returns
- * true due to this assumption.
- * In general, if +r = (...minimum); r.overlap?(r)+ returns +true+,
+ * For example, there is no value smaller than <tt>-Float::INFINITY</tt>,
+ * making <tt>(...-Float::INFINITY)</tt> an empty set.
+ * Consequently, <tt>(...-Float::INFINITY)</tt> has no elements in common with itself,
+ * yet <tt>(...-Float::INFINITY).overlap?((...-Float::INFINITY))<tt> returns
+ * +true+ due to this assumption.
+ * In general, if <tt>r = (...minimum); r.overlap?(r)</tt> returns +true+,
* where +minimum+ is a value that no value is smaller than.
- * Such values include +-Float::INFINITY+, +[]+, +""+, and
+ * Such values include <tt>-Float::INFINITY</tt>, <tt>[]</tt>, <tt>""</tt>, and
* classes without subclasses.
*
* Related: Range#cover?.