Skip to content

Commit fbd54b6

Browse files
committed
typo
1 parent f9e39f1 commit fbd54b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/0000-float-semantics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ However, having `const` results depend on NaN bits should be very rare, and we a
233233
### Alternative: `const` tracks NaN values, fails when their bits matter during compile-time
234234

235235
`const` could in principle track NaNs symbolically, similar to how it tracks pointers, and delay choosing NaN payload bits until codegen.
236-
Const-evaluation would then abort if the bits of a NaN are observed (eg. if `to_bits`is called during const-evaluation).
236+
Const-evaluation would then abort if the bits of a NaN are observed (eg. if `to_bits` is called during const-evaluation).
237237
This would keep `const C = 0.0/0.0;` working, but requires `const fn is_nan` to be an intrinsic.
238238
However, it would require massive amounts of work in the compile-time interpreter, comparable in complexity to all the work that is already required to support symbolic pointers (and the RFC author doubts that there will be a lot of opportunity for those two kinds of symbolic state to share infrastructure).
239239
That effort should only be invested if there is a significant payoff.

0 commit comments

Comments
 (0)