Skip to content

Commit f2faa89

Browse files
committed
small tweaks
1 parent 4b55adb commit f2faa89

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

proposals/NNNN-non-escapable.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ This is in contrast to an _escapable_ `consuming` argument which can be disposed
172172
#### Values that contain nonescapable values must be nonescapable
173173

174174
Stored struct properties and enum payloads can have nonescapable types if the surrounding type is itself nonescapable.
175-
(Equivalently, an escapable struct or enum can only contain escapable values.)
175+
Equivalently, an escapable struct or enum can only contain escapable values.
176176
Nonescapable values cannot be stored as class properties, since classes are always inherently escaping.
177177

178178
```swift
@@ -217,7 +217,7 @@ This implies that they cannot be stored in global or static variables.
217217
#### Closures and nonescapable values
218218

219219
Escaping closures cannot capture nonescapable values.
220-
Nonescaping closures can capture nonescapable values subject only to the usual exclusivity restrictions.
220+
Nonescaping closures can capture nonescapable values subject to the usual exclusivity restrictions.
221221

222222
Returning a nonescapable value from a closure requires explicit lifetime dependency annotations, as covered in the companion proposal.
223223

@@ -245,7 +245,7 @@ extension Box: Escapable where T: Escapable { }
245245
```
246246

247247
This can be used in conjunction with other suppressible protocols.
248-
For example, many general library types will need to be copyable and/or escapable following their contents.
248+
For example, many general library container types will need to be copyable and/or escapable according to their contents.
249249
Here's a compact way to declare such a type:
250250
```swift
251251
struct Wrapper<T: ~Copyable & ~Escapable> { ... }

0 commit comments

Comments
 (0)