mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[DOC] Small fixes for documentation rendering
Mostly just fixing RDoc's incorrect treatment of `+`
This commit is contained in:
parent
1cbe114d1c
commit
07734b51c6
4 changed files with 18 additions and 18 deletions
14
range.c
14
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?.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue