Skip to content

Commit d4fa579

Browse files
committed
Move note higher
1 parent eaf3116 commit d4fa579

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

standard/variables.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,6 +1052,8 @@ A ***reference return*** is the *variable_reference* returned from a returns-by-
10521052
10531053
All reference variables obey safety rules that ensure the ref-safe-context of the reference variable is not greater than the ref-safe-context of its referent.
10541054
1055+
> *Note*: The related notion of a *safe-context* is defined in ([§16.4.12](structs.md#16412-safe-context-constraint)), along with associated constraints. *end note*
1056+
10551057
For any variable, the ***ref-safe-context*** of that variable is the context where a *variable_reference* ([§9.5](variables.md#95-variable-references)) to that variable is valid. The referent of a reference variable must have a ref-safe-context that is at least as wide as the ref-safe-context of the reference variable itself.
10561058
10571059
> *Note*: The compiler determines the ref-safe-context through a static analysis of the program text. The ref-safe-context reflects the lifetime of a variable at runtime. *end note*
@@ -1152,10 +1154,6 @@ These values form a nesting relationship from narrowest (declaration-block) to w
11521154
> ```
11531155
>
11541156
> *end example.*
1155-
<!-- markdownlint-disable MD028 -->
1156-
1157-
<!-- markdownlint-enable MD028 -->
1158-
> *Note*: The related notion of a *safe-context* is defined in ([§16.4.12](structs.md#16412-safe-context-constraint)), along with associated constraints. *end note*
11591157
11601158
#### 9.7.2.2 Local variable ref safe context
11611159

0 commit comments

Comments
 (0)