You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/expressions/block-expr.md
+2
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@
15
15
A *block expression*, or *block*, is a control flow expression and anonymous namespace scope for items and variable declarations.
16
16
As a control flow expression, a block sequentially executes its component non-item declaration statements and then its final optional expression.
17
17
As an anonymous namespace scope, item declarations are only in scope inside the block itself and variables declared by `let` statements are in scope from the next statement until the end of the block.
18
+
See the [scopes] chapter for more details.
18
19
19
20
The syntax for a block is `{`, then any [inner attributes], then any number of [statements], then an optional expression, called the final operand, and finally a `}`.
0 commit comments