Skip to content

Commit b1d4c0a

Browse files
committed
format text
1 parent 27e2b3d commit b1d4c0a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

text/0001-int.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ Let `min_value` be $-2^{31}$ and `max_value` be $2^{31}-1$
4848
The [`ToInt32`] behavior follows the definition in ECMA-262 as is. ReScript compiler uses `bitwiseOR(number, 0)` in action. This is what appears in the output as `number | 0`, which truncates all special numbers defined in IEEE-754.
4949

5050
The `fromNumber` shouldn't be directly exposed to the users. Applying the [`ToInt32`] operation to special numeric values, such as `Infinity`, can lead to subtle bugs (see example: [issue #6737](https://github.com/rescript-lang/rescript/issues/6737)).
51-
Instead, Public APIs should wrap it and perform bounds-checking, if necessary, either emit errors (explained further in the "API Consideration" section below) or notify the user via compiler warning.
51+
52+
Instead, public APIs should wrap it and perform bounds-checking, if necessary, either emit errors (explained further in the ["API Consideration"](#api-consideration) section below) or notify the user via compiler warning.
5253

5354
`int` never contains the following values:
5455

0 commit comments

Comments
 (0)