Skip to content

Commit c233d4d

Browse files
Fix typo
Co-authored-by: Jake Goulding <shepmaster@mac.com>
1 parent c89075d commit c233d4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/0000-inline-const.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ consists of a single expression. This is analagous to the single expression
310310
variant of closures: `|| 42`. This is backwards compatible with the current proposal.
311311

312312
Eventually, I would like to try making any expression that could possibly panic
313-
inelgible for implicit promotion. This includes *all* `const fn` calls as well
313+
ineligible for implicit promotion. This includes *all* `const fn` calls as well
314314
as all arithmetic expressions (e.g., `&(0u32 - 1)`), which currently work due
315315
to [the way MIR is lowered][arith-assert]. Even though bitwise operators can
316316
never panic, I would also stop promoting them to be consistent. This would

0 commit comments

Comments
 (0)