Skip to content

Commit e032c4b

Browse files
author
Tomas Lycken
committed
Highlight that ifs don't introduce new scopes
1 parent f264d4f commit e032c4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/manual/variables-and-scoping.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The constructs introducing such blocks are:
3030
- ``type`` blocks.
3131

3232
Notably missing from this list are
33-
:ref:`begin blocks <man-compound-expressions>`, which do
33+
:ref:`begin blocks <man-compound-expressions>` and :ref:`if blocks <man-conditional-evaluation>`, which do
3434
*not* introduce new scope blocks.
3535

3636
Certain constructs introduce new variables into the current innermost

0 commit comments

Comments
 (0)