1
0
forked from Mirror/wren

Correct method examples in Range docs

This commit is contained in:
kylewcharters@gmail.com
2017-10-23 13:48:43 -04:00
parent 88ff8f90ef
commit 1be76bb478

View File

@ -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**