Skip to content

Commit 9853602

Browse files
committed
don’t rely on pseudo code as exposition
1 parent 3762019 commit 9853602

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

proposals/NNNN-non-escapable.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ struct NotEscapable: ~Escapable {
8787
```
8888

8989
A nonescapable value is not allowed to escape the local context:
90+
91+
- It cannot be assigned to a binding in a larger scope
92+
- It cannot be returned from the current scope
93+
9094
```swift
9195
// Example: Basic limits on ~Escapable types
9296
func f() -> NotEscapable {
@@ -99,7 +103,6 @@ func f() -> NotEscapable {
99103
```
100104

101105
**Note**:
102-
The section "Returned nonescapable values require lifetime dependency" explains the implications for how you must write initializers.
103106

104107
Without `~Escapable`, the default for any type is to be escapable. Since `~Escapable` suppresses a capability, you cannot put this in an extension.
105108

0 commit comments

Comments
 (0)