[DOC] Fix formatting for ways to create Range objects

This commit is contained in:
Peter Zhu 2024-09-18 10:34:01 -04:00
parent 9c12c39ed1
commit e358104e6e
Notes: git 2024-09-18 19:18:25 +00:00

View File

@ -2502,7 +2502,7 @@ range_overlap(VALUE range, VALUE other)
* (1...4).to_a # => [1, 2, 3]
* ('a'...'d').to_a # => ["a", "b", "c"]
*
* A range may be created using method Range.new:
* - Method Range.new:
*
* # Ranges that by default include the given end value.
* Range.new(1, 4).to_a # => [1, 2, 3, 4]