forked from Mirror/wren
Correct method examples in Range docs
This commit is contained in:
@ -13,8 +13,8 @@ The starting point of the range. A range may be backwards, so this can be
|
||||
greater than [to].
|
||||
|
||||
:::wren
|
||||
System.print((3..5).min) //> 3
|
||||
System.print((4..2).min) //> 4
|
||||
System.print((3..5).from) //> 3
|
||||
System.print((4..2).from) //> 4
|
||||
|
||||
### **to**
|
||||
|
||||
@ -22,8 +22,8 @@ The endpoint of the range. If the range is inclusive, this value is included,
|
||||
otherwise it is not.
|
||||
|
||||
:::wren
|
||||
System.print((3..5).min) //> 5
|
||||
System.print((4..2).min) //> 2
|
||||
System.print((3..5).to) //> 5
|
||||
System.print((4..2).to) //> 2
|
||||
|
||||
### **min**
|
||||
|
||||
@ -40,8 +40,8 @@ The maximum bound of the range. Returns either `from`, or `to`, whichever is
|
||||
greater.
|
||||
|
||||
:::wren
|
||||
System.print((3..5).min) //> 5
|
||||
System.print((4..2).min) //> 4
|
||||
System.print((3..5).max) //> 5
|
||||
System.print((4..2).max) //> 4
|
||||
|
||||
### **isInclusive**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user