diff options
Diffstat (limited to '04-identifiers-names-and-scopes.md')
-rw-r--r-- | 04-identifiers-names-and-scopes.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/04-identifiers-names-and-scopes.md b/04-identifiers-names-and-scopes.md index 96b4f283e9..0a3f9ca3cf 100644 --- a/04-identifiers-names-and-scopes.md +++ b/04-identifiers-names-and-scopes.md @@ -39,7 +39,7 @@ scopes. Note that shadowing is only a partial order. In a situation like -``` +```scala val x = 1 { import p.x @@ -71,11 +71,11 @@ namespace as the identifier. It is an error if $T$ is not a [value type](05-type The type of $e.x$ is the member type of the referenced entity in $T$. -### Example: +### Example Assume the following two definitions of a objects named `X` in packages `P` and `Q`. -``` +```scala package P { object X { val x = 1; val y = 2 } } @@ -88,7 +88,7 @@ package Q { The following program illustrates different kinds of bindings and precedences between them. -``` +```scala package P { // `X' bound by package clause import Console._ // `println' bound by wildcard import object A { |