Skip to content

Commit 35c60cf

Browse files
authored
doc: reflect current intf32 behaviour (#9433)
1 parent 0c055a1 commit 35c60cf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/docs.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,9 +434,10 @@ These are the allowed possibilities:
434434
i8 → i16 → int → i64 ⬏
435435
```
436436
An `int` value for example can be automatically promoted to `f64`
437-
or `i64` but not to `f32` or `u32`. (`f32` would mean precision
438-
loss for large values and `u32` would mean loss of the sign for
437+
or `i64` but not to `u32`. (`u32` would mean loss of the sign for
439438
negative values).
439+
Promotion from `int` to `f32`, however, is currently done automatically
440+
(but can lead to precision loss for large values).
440441

441442
Literals like `123` or `4.56` are treated in a special way. They do
442443
not lead to type promotions, however they default to `int` and `f64`

0 commit comments

Comments
 (0)