Skip to content

Commit 7f348c5

Browse files
docs, scope: include do-blocks in scope table [close #36837] (#36842)
1 parent 7fa3a9b commit 7f348c5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/src/manual/variables-and-scoping.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ allowed or not.
1919

2020
The constructs introducing scope blocks are:
2121

22-
Construct | Scope type | Allowed within
23-
----------|------------|---------------
24-
[`module`](@ref), [`baremodule`](@ref) | global | global
25-
[`struct`](@ref) | local (soft) | global
26-
[`for`](@ref), [`while`](@ref), [`try`](@ref try) | local (soft) | global or local
27-
[`macro`](@ref) | local (hard) | global
28-
[`let`](@ref), functions, comprehensions, generators | local (hard) | global or local
22+
| Construct | Scope type | Allowed within |
23+
|:----------|:-----------|:---------------|
24+
| [`module`](@ref), [`baremodule`](@ref) | global | global |
25+
| [`struct`](@ref) | local (soft) | global |
26+
| [`for`](@ref), [`while`](@ref), [`try`](@ref try) | local (soft) | global, local |
27+
| [`macro`](@ref) | local (hard) | global |
28+
| functions, [`do`](@ref) blocks, [`let`](@ref) blocks, comprehensions, generators | local (hard) | global, local |
2929

3030
Notably missing from this table are
3131
[begin blocks](@ref man-compound-expressions) and [if blocks](@ref man-conditional-evaluation)

0 commit comments

Comments
 (0)