Skip to content

Commit aabf428

Browse files
committed
Changed discussion of "destructors" to "deinitializers".
1 parent f4a6479 commit aabf428

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

TSPL.docc/ReferenceManual/Attributes.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,9 @@ including important milestones.
274274
```
275275

276276
You can use noasync availability with most declarations;
277-
however, you can't use it when declaring destructors.
278-
The system must be able to call destructors from any context.
277+
however, you can't use it when declaring deinitializers.
278+
Swift must be able to call a class's deinitializers from any context,
279+
both synchronous and asynchronous.
279280

280281
- The `message` argument provides a textual message that the compiler displays
281282
when emitting a warning or error about the use of a deprecated, obsoleted,

0 commit comments

Comments
 (0)