summaryrefslogtreecommitdiff
path: root/spec/06-expressions.md
diff options
context:
space:
mode:
authorJanek Bogucki <janekdb@gmail.com>2017-04-10 12:08:11 +0100
committerJanek Bogucki <janekdb@gmail.com>2017-04-10 12:08:11 +0100
commitb9f5211ffd0d097d4caffc40ced8d280e632f460 (patch)
treea26024f01404276de6deae6411741a2bdbaf5d07 /spec/06-expressions.md
parentd9c3bd53433f202f0123733613baf3a382076323 (diff)
downloadscala-b9f5211ffd0d097d4caffc40ced8d280e632f460.tar.gz
scala-b9f5211ffd0d097d4caffc40ced8d280e632f460.tar.bz2
scala-b9f5211ffd0d097d4caffc40ced8d280e632f460.zip
Fix == in spec linearization examples
Also - Consistify trailing punctuation - Use whitespace to group linearization examples
Diffstat (limited to 'spec/06-expressions.md')
-rw-r--r--spec/06-expressions.md11
1 files changed, 8 insertions, 3 deletions
diff --git a/spec/06-expressions.md b/spec/06-expressions.md
index 0e84c427f6..9e49dfa199 100644
--- a/spec/06-expressions.md
+++ b/spec/06-expressions.md
@@ -222,9 +222,14 @@ the linearization of class `D` is `{D, B, A, Root}`.
Then we have:
```scala
-(new A).superA == "Root",
- (new C).superB = "Root", (new C).superC = "B",
-(new D).superA == "Root", (new D).superB = "A", (new D).superD = "B",
+(new A).superA == "Root"
+
+(new C).superB == "Root"
+(new C).superC == "B"
+
+(new D).superA == "Root"
+(new D).superB == "A"
+(new D).superD == "B"
```
Note that the `superB` function returns different results