@@ -64,7 +64,7 @@ The constructs introducing scope blocks are:
6464| Construct | Scope Type Introduced | Scope Types Able to Contain Construct |
6565| :----------| :----------------------| :--------------------------------------|
6666| [ ` module ` ] ( @ref ) , [ ` baremodule ` ] ( @ref ) | global | global |
67- | [ ` struct ` ] ( @ref ) | local (soft ) | global |
67+ | [ ` struct ` ] ( @ref ) | local (hard ) | global |
6868| [ ` macro ` ] ( @ref ) | local (hard) | global |
6969| [ ` for ` ] ( @ref ) , [ ` while ` ] ( @ref ) , [ ` try ` ] (@ref try) | local (soft) | global, local |
7070| [ ` function ` ] ( @ref ) , [ ` do ` ] ( @ref ) , [ ` let ` ] ( @ref ) , [ comprehensions] (@ref man-comprehensions), [ generators] (@ref man-generators) | local (hard) | global, local |
@@ -169,10 +169,10 @@ that location:
1691691 . ** Existing local:** If ` x ` is * already a local variable* , then the existing local ` x ` is
170170 assigned;
1711712 . ** Hard scope:** If ` x ` is * not already a local variable* and assignment occurs inside of any
172- hard scope construct (i.e. within a ` let ` block, function or macro body, comprehension, or
172+ hard scope construct (i.e. within a ` let ` block, function, struct or macro body, comprehension, or
173173 generator), a new local named ` x ` is created in the scope of the assignment;
1741743 . ** Soft scope:** If ` x ` is * not already a local variable* and all of the scope constructs
175- containing the assignment are soft scopes (loops, ` try ` /` catch ` blocks, or ` struct ` blocks ), the
175+ containing the assignment are soft scopes (loops, ` try ` /` catch ` blocks), the
176176 behavior depends on whether the global variable ` x ` is defined:
177177 * if global ` x ` is * undefined* , a new local named ` x ` is created in the scope of the
178178 assignment;
0 commit comments