Skip to content

Commit

Permalink
Merge pull request rust-lang#1045 from FabianWolff/var-visibility
Browse files Browse the repository at this point in the history
Make statement about variable visibility more precise
  • Loading branch information
ehuss authored Jun 10, 2021
2 parents 8f598e2 + f5cd251 commit df4622b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/statements.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ annotation and then optionally by an initializer expression. When no
type annotation is given, the compiler will infer the type, or signal
an error if insufficient type information is available for definite
inference. Any variables introduced by a variable declaration are visible
from the point of declaration until the end of the enclosing block scope.
from the point of declaration until the end of the enclosing block scope,
except when they are shadowed by another variable declaration.

## Expression statements

Expand Down

0 comments on commit df4622b

Please sign in to comment.