Skip to content

Commit f1e535f

Browse files
authored
Fix typo: Alloc -> Allow
and fix the listing.
1 parent 899eef7 commit f1e535f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

text/1440-drop-types-in-const.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ runtime-initialisation for global variables.
2121
[design]: #detailed-design
2222

2323
- Lift the restriction on types with destructors being used in `static` or `const` items.
24-
- `static`s containing Drop-types will not run the destructor upon program/thread exit.
25-
- `const`s containing Drop-types _will_ run the destructor at the appropriate point in the program.
26-
- (Optionally adding a lint that warn about the possibility of resource leak)
27-
- Alloc instantiating structures with destructors in constant expressions,
24+
- `static`s containing Drop-types will not run the destructor upon program/thread exit.
25+
- `const`s containing Drop-types _will_ run the destructor at the appropriate point in the program.
26+
- (Optionally adding a lint that warn about the possibility of resource leak)
27+
- Allow instantiating structures with destructors in constant expressions.
2828
- Allow `const fn` to return types with destructors.
2929
- Disallow constant expressions that require destructors to run during compile-time constant evaluation (i.e: a `drop(foo)` in a `const fn`).
3030

0 commit comments

Comments
 (0)