summaryrefslogtreecommitdiff
path: root/spec/05-classes-and-objects.md
diff options
context:
space:
mode:
authorAntoine Gourlay <antoine@gourlay.fr>2014-09-15 14:08:17 +0200
committerAntoine Gourlay <antoine@gourlay.fr>2014-09-17 13:40:10 +0200
commitd24ad908451e42925fe6be9995235bf2b4de1b39 (patch)
tree11e881ecbf6698b292d126d1f10d051069d1ca1a /spec/05-classes-and-objects.md
parent3b0c71df60a41e13e47ec9ae8dbc606e1928aba8 (diff)
downloadscala-d24ad908451e42925fe6be9995235bf2b4de1b39.tar.gz
scala-d24ad908451e42925fe6be9995235bf2b4de1b39.tar.bz2
scala-d24ad908451e42925fe6be9995235bf2b4de1b39.zip
spec: fix broken links and anchors, including examples
For examples, the "name" of the example (like "Example Ordered") is only used to derived its html id so that one can link to it (see `layouts/default.yml`). Ideally all examples should have a name; here I only added enough to satisfy existing links.
Diffstat (limited to 'spec/05-classes-and-objects.md')
-rw-r--r--spec/05-classes-and-objects.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/05-classes-and-objects.md b/spec/05-classes-and-objects.md
index 6ac4c8fdcf..ef854b2abb 100644
--- a/spec/05-classes-and-objects.md
+++ b/spec/05-classes-and-objects.md
@@ -220,7 +220,7 @@ Then the linearization of class `Iter` is
Note that the linearization of a class refines the inheritance
relation: if $C$ is a subclass of $D$, then $C$ precedes $D$ in any
linearization where both $C$ and $D$ occur.
-[Linearization](#definition-linearization) also satisfies the property that
+[Linearization](#definition:-linearization) also satisfies the property that
a linearization of a class always contains the linearization of its direct superclass as a suffix.
For instance, the linearization of `StringIterator` is
@@ -753,6 +753,7 @@ val c = new C(1, "abc", List())
c.z = c.y :: c.z
```
+### Example Private Constructor
The following class can be created only from its companion module.
```scala