diff options
author | Antoine Gourlay <antoine@gourlay.fr> | 2014-09-15 14:08:17 +0200 |
---|---|---|
committer | Antoine Gourlay <antoine@gourlay.fr> | 2014-09-17 13:40:10 +0200 |
commit | d24ad908451e42925fe6be9995235bf2b4de1b39 (patch) | |
tree | 11e881ecbf6698b292d126d1f10d051069d1ca1a /spec/01-lexical-syntax.md | |
parent | 3b0c71df60a41e13e47ec9ae8dbc606e1928aba8 (diff) | |
download | scala-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/01-lexical-syntax.md')
-rw-r--r-- | spec/01-lexical-syntax.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/01-lexical-syntax.md b/spec/01-lexical-syntax.md index 4bfef79ac5..d5752bbdf0 100644 --- a/spec/01-lexical-syntax.md +++ b/spec/01-lexical-syntax.md @@ -178,7 +178,7 @@ between the two tokens. However, if two tokens are separated by at least one completely blank line (i.e a line which contains no printable characters), then two `nl` tokens are inserted. -The Scala grammar (given in full [here](#scala-syntax-summary)) +The Scala grammar (given in full [here](13-syntax-summary.html)) contains productions where optional `nl` tokens, but not semicolons, are accepted. This has the effect that a newline in one of these positions does not terminate an expression or statement. These positions can @@ -202,7 +202,7 @@ A single new line token is accepted - in front of an opening brace ‘{’, if that brace is a legal continuation of the current statement or expression, -- after an [infix operator](06-expressions.html#prefix-infix-and-postfix-operations), +- after an [infix operator](06-expressions.html#prefix,-infix,-and-postfix-operations), if the first token on the next line can start an expression, - in front of a [parameter clause](04-basic-declarations-and-definitions.html#function-declarations-and-definitions), and - after an [annotation](11-user-defined-annotations.html#user-defined-annotations). @@ -498,7 +498,7 @@ lines. ``` Method `stripMargin` is defined in class -[scala.collection.immutable.StringLike](http://www.scala-lang.org/api/current/index.html#scala.collection.immutable.StringLike). +[scala.collection.immutable.StringLike](http://www.scala-lang.org/api/current/#scala.collection.immutable.StringLike). Because there is a predefined [implicit conversion](06-expressions.html#implicit-conversions) from `String` to `StringLike`, the method is applicable to all strings. |