[DOC] Small fixes for documentation rendering

Mostly just fixing RDoc's incorrect treatment of `+`
This commit is contained in:
Victor Shepelev 2023-12-09 06:54:33 +02:00 committed by GitHub
parent 1cbe114d1c
commit 07734b51c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 18 deletions

14
range.c
View file

@ -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?.