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
+3 -3
View File
@@ -15,14 +15,14 @@ The superclass of this class.
class Crustacean {}
class Crab is Crustacean {}
System.print(Crab.supertype) // "Crustacean".
System.print(Crab.supertype) //> Crustacean
A class with no explicit superclass implicitly inherits Object:
:::wren
System.print(Crustacean.supertype) // "Object".
System.print(Crustacean.supertype) //> Object
Object forms the root of the class hierarchy and has no supertype:
:::wren
System.print(Object.supertype) // "null".
System.print(Object.supertype) //> null