summaryrefslogtreecommitdiff
path: root/spec/06-expressions.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/06-expressions.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/06-expressions.md')
-rw-r--r--spec/06-expressions.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/06-expressions.md b/spec/06-expressions.md
index 96a2558e61..e1f8580313 100644
--- a/spec/06-expressions.md
+++ b/spec/06-expressions.md
@@ -108,11 +108,11 @@ A designator refers to a named term. It can be a _simple name_ or
a _selection_.
A simple name $x$ refers to a value as specified
-[here](02-identifiers-names-and-scopes.html#identifiers-names-and-scopes).
+[here](02-identifiers-names-and-scopes.html#identifiers,-names-and-scopes).
If $x$ is bound by a definition or declaration in an enclosing class
or object $C$, it is taken to be equivalent to the selection
`$C$.this.$x$` where $C$ is taken to refer to the class containing $x$
-even if the type name $C$ is [shadowed](02-identifiers-names-and-scopes.html#identifiers-names-and-scopes) at the
+even if the type name $C$ is [shadowed](02-identifiers-names-and-scopes.html#identifiers,-names-and-scopes) at the
occurrence of $x$.
If $r$ is a [stable identifier](03-types.html#paths) of type $T$, the selection $r.x$ refers
@@ -802,7 +802,7 @@ Here are some assignment expressions and their equivalent expansions.
|`x.f(i) = e` | `x.f.update(i, e)` |
|`x.f(i, j) = e` | `x.f.update(i, j, e)`|
-### Example
+### Example Imperative Matrix Multiplication
Here is the usual imperative code for matrix multiplication.
@@ -1115,7 +1115,7 @@ Expr1 ::= `try' `{' Block `}' [`catch' `{' CaseClauses `}']
A try expression is of the form `try { $b$ } catch $h$`
where the handler $h$ is a
-[pattern matching anonymous function](#pattern-matching-anonymous-functions)
+[pattern matching anonymous function](08-pattern-matching.html#pattern-matching-anonymous-functions)
```scala
{ case $p_1$ => $b_1$ $\ldots$ case $p_n$ => $b_n$ }