diff options
Diffstat (limited to '04-identifiers-names-and-scopes.md')
-rw-r--r-- | 04-identifiers-names-and-scopes.md | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/04-identifiers-names-and-scopes.md b/04-identifiers-names-and-scopes.md index 45798b82e2..57af8afc3e 100644 --- a/04-identifiers-names-and-scopes.md +++ b/04-identifiers-names-and-scopes.md @@ -38,8 +38,10 @@ Note that shadowing is only a partial order. In a situation like ``` val x = 1; -{ import p.x; - x } +{ + import p.x; + x +} ``` neither binding of `x` shadows the other. Consequently, the |