Skip to content

Commit 1c9c699

Browse files
committed
Fix spelling errors
1 parent a778e87 commit 1c9c699

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
# Summary
77
[summary]: #summary
88

9-
Allow types with destructors to be used in `static` items and in `cosnt` functions, as long as the destructor never needs to run in const context.
9+
Allow types with destructors to be used in `static` items and in `const` functions, as long as the destructor never needs to run in const context.
1010

1111
# Motivation
1212
[motivation]: #motivation
1313

1414
Most collection types do not allocate any memory when constructed empty. With the change to make leaking safe, the restriction on `static` items with destructors
15-
is no longer trequired to be a hard error.
15+
is no longer required to be a hard error.
1616

1717
Allowing types with destructors to be directly used in `const` functions and stored in `static`s will remove the need to have
1818
runtime-initialisation for global variables.
@@ -24,7 +24,7 @@ runtime-initialisation for global variables.
2424
- (Optionally adding a lint that warn about the possibility of resource leak)
2525
- Alloc instantiating structures with destructors in constant expressions,
2626
- Continue to prevent `const` items from holding types with destructors.
27-
- Allow `const fn` to return types wth destructors.
27+
- Allow `const fn` to return types with destructors.
2828
- Disallow constant expressions which would result in the destructor being called (if the code were run at runtime).
2929

3030
## Examples

0 commit comments

Comments
 (0)