diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-03-26 21:40:02 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-03-26 21:40:48 -0700 |
commit | 71c1716ae4f16a05825695a33d480ac194c5ae09 (patch) | |
tree | 9f6002559be84e32fa3a983f3bbf5dbab199aae5 /04-identifiers-names-and-scopes.md | |
parent | abd0895322985dd4a590f3dd96a488f4e4ff87bf (diff) | |
download | scala-71c1716ae4f16a05825695a33d480ac194c5ae09.tar.gz scala-71c1716ae4f16a05825695a33d480ac194c5ae09.tar.bz2 scala-71c1716ae4f16a05825695a33d480ac194c5ae09.zip |
Add language to code blocks. Shorter Example title.
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 { |