@@ -172,7 +172,7 @@ This is in contrast to an _escapable_ `consuming` argument which can be disposed
172
172
#### Values that contain nonescapable values must be nonescapable
173
173
174
174
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.
176
176
Nonescapable values cannot be stored as class properties, since classes are always inherently escaping.
177
177
178
178
``` swift
@@ -217,7 +217,7 @@ This implies that they cannot be stored in global or static variables.
217
217
#### Closures and nonescapable values
218
218
219
219
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.
221
221
222
222
Returning a nonescapable value from a closure requires explicit lifetime dependency annotations, as covered in the companion proposal.
223
223
@@ -245,7 +245,7 @@ extension Box: Escapable where T: Escapable { }
245
245
```
246
246
247
247
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.
249
249
Here's a compact way to declare such a type:
250
250
``` swift
251
251
struct Wrapper <T : ~ Copyable & ~ Escapable > { ... }
0 commit comments