Skip to content

Commit 6521129

Browse files
authored
initialisation -> initialization
1 parent 0dbf16e commit 6521129

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Some of the collection types do not allocate any memory when constructed empty (
1515
is no longer required to be a hard error (as it is safe and accepted that these destructors may never run).
1616

1717
Allowing types with destructors to be directly used in `const` functions and stored in `static`s or `const`s will remove the need to have
18-
runtime-initialisation for global variables.
18+
runtime-initialization for global variables.
1919

2020
# Detailed design
2121
[design]: #detailed-design
@@ -62,9 +62,9 @@ A `const` item's destructor _will_ run at each point where the `const` item is u
6262
# Alternatives
6363
[alternatives]: #alternatives
6464

65-
- Runtime initialisation of a raw pointer can be used instead (as the `lazy_static` crate currently does on stable)
65+
- Runtime initialization of a raw pointer can be used instead (as the `lazy_static` crate currently does on stable).
6666
- On nightly, a bug related to `static` and `UnsafeCell<Option<T>>` can be used to remove the dynamic allocation.
67-
- Both of these alternatives require runtime initialisation, and incur a checking overhead on subsequent accesses.
67+
- Both of these alternatives require runtime initialization, and incur a checking overhead on subsequent accesses.
6868
- Leaking of objects could be addressed by using C++-style `.dtors` support
6969
- This is undesirable, as it introduces confusion around destructor execution order.
7070

0 commit comments

Comments
 (0)