mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[DOC] Fix formatting for ways to create Range objects
This commit is contained in:
parent
9c12c39ed1
commit
e358104e6e
Notes:
git
2024-09-18 19:18:25 +00:00
1 changed files with 1 additions and 1 deletions
2
range.c
2
range.c
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue