summaryrefslogtreecommitdiff
path: root/03-lexical-syntax.md
diff options
context:
space:
mode:
Diffstat (limited to '03-lexical-syntax.md')
-rw-r--r--03-lexical-syntax.md20
1 files changed, 10 insertions, 10 deletions
diff --git a/03-lexical-syntax.md b/03-lexical-syntax.md
index 95c110afff..0e9cc0b495 100644
--- a/03-lexical-syntax.md
+++ b/03-lexical-syntax.md
@@ -190,23 +190,23 @@ that a semicolon in place of the newline would be illegal in every one
of these cases):
- between the condition of a
- [conditional expression](#conditional-expressions)
- or [while loop](#while-loop-expressions) and the next
+ [conditional expression](08-expressions.html#conditional-expressions)
+ or [while loop](08-expressions.html#while-loop-expressions) and the next
following expression,
- between the enumerators of a
- [for-comprehension](#for-comprehensions-and-for-loops)
+ [for-comprehension](08-expressions.html#for-comprehensions-and-for-loops)
and the next following expression, and
- after the initial `type` keyword in a
- [type definition or declaration](#type-declarations-and-type-aliases).
+ [type definition or declaration](06-basic-declarations-and-definitions.html#type-declarations-and-type-aliases).
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](#prefix-infix-and-postfix-operations),
+- after an [infix operator](08-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](#function-declarations-and-definitions), and
-- after an [annotation](#user-defined-annotations).
+- in front of a [parameter clause](06-basic-declarations-and-definitions.html#function-declarations-and-definitions), and
+- after an [annotation](13-user-defined-annotations.html#user-defined-annotations).
###### Example: four well-formed statements, each on two lines
@@ -344,7 +344,7 @@ type `Long` are all integer numbers between $-2^{63}$ and
$2^{63}-1$, inclusive. A compile-time error occurs if an integer literal
denotes a number outside these ranges.
-However, if the expected type [_pt_](#expression-typing) of a literal
+However, if the expected type [_pt_](08-expressions.html#expression-typing) of a literal
in an expression is either `Byte`, `Short`, or `Char`
and the integer number fits in the numeric range defined by the type,
then the number is converted to type _pt_ and the literal's type
@@ -507,7 +507,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).
Because there is a predefined
-[implicit conversion](#implicit-conversions) from `String` to
+[implicit conversion](08-expressions.html#implicit-conversions) from `String` to
`StringLike`, the method is applicable to all strings.
@@ -542,7 +542,7 @@ symbolLiteral ::= ‘'’ plainid
```
A symbol literal `'x` is a shorthand for the expression
-`scala.Symbol("x")`. `Symbol` is a [case class](#case-classes),
+`scala.Symbol("x")`. `Symbol` is a [case class](07-classes-and-objects.html#case-classes),
which is defined as follows.
```