Skip to content

Commit 1ec163a

Browse files
authored
Merge pull request #3332 from albertlarsan68/patch-1
Fix a typo in RFC 3027
2 parents 089e1f3 + c0b6358 commit 1ec163a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/3027-infallible-promotion.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Restrict (implicit) [promotion][rfc1414], such as lifetime extension of rvalues,
1717

1818
Rvalue promotion (as it was originally called) describes the process of taking an rvalue that can be computed at compile-time, and "promoting" it to a constant, so that references to that rvalue can have `'static` lifetime.
1919
It has been introduced by [RFC 1414][rfc1414].
20-
The scope of what exactly is being promoted in which context has been extended over the years in an ad-hoc manner, and the underlying mechanism of promotion (to extract a part of a larger body of code into a separate constant) is now also used for purposes other than making references have `'statc` lifetime.
20+
The scope of what exactly is being promoted in which context has been extended over the years in an ad-hoc manner, and the underlying mechanism of promotion (to extract a part of a larger body of code into a separate constant) is now also used for purposes other than making references have `'static` lifetime.
2121
To account for this, the const-eval WG [agreed on the following terminology][promotion-status]:
2222
* Making references have `'static` lifetime is called "lifetime extension".
2323
* The underlying mechanism of extracting part of some code into a constant is called "promotion".

0 commit comments

Comments
 (0)