Style example output and errors in the docs.

This commit is contained in:
Bob Nystrom
2015-10-18 15:56:52 -07:00
parent 2174ff31e7
commit 545a4cbf7e
24 changed files with 203 additions and 166 deletions
+10 -10
View File
@@ -14,8 +14,8 @@ The starting point of the range. A range may be backwards, so this can be
greater than [to].
:::wren
(3..5).min // 3.
(4..2).min // 4.
System.print((3..5).min) //> 3
System.print((4..2).min) //> 4
### **to**
@@ -23,8 +23,8 @@ The endpoint of the range. If the range is inclusive, this value is included,
otherwise it is not.
:::wren
(3..5).min // 5.
(4..2).min // 2.
System.print((3..5).min) //> 5
System.print((4..2).min) //> 2
### **min**
@@ -32,8 +32,8 @@ The minimum bound of the range. Returns either `from`, or `to`, whichever is
lower.
:::wren
(3..5).min // 3.
(4..2).min // 2.
System.print((3..5).min) //> 3
System.print((4..2).min) //> 2
### **max**
@@ -41,16 +41,16 @@ The maximum bound of the range. Returns either `from`, or `to`, whichever is
greater.
:::wren
(3..5).min // 5.
(4..2).min // 4.
System.print((3..5).min) //> 5
System.print((4..2).min) //> 4
### **isInclusive**
Whether or not the range includes `to`. (`from` is always included.)
:::wren
(3..5).isInclusive // true.
(3...5).isInclusive // false.
System.print((3..5).isInclusive) //> true
System.print((3...5).isInclusive) //> false
### **iterate**(iterator), **iteratorValue**(iterator)