Skip to content

Commit c56ad6f

Browse files
authored
fix: incorrect comment on Math.sign (#7188)
Math.sign(negative_value) should be -1.0 instead of 1.0
1 parent 7da4d6a commit c56ad6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/Math.resi

+1-1
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ module Int: {
270270

271271
```rescript
272272
Math.Int.sign(3) // 1
273-
Math.Int.sign(-3) // 1
273+
Math.Int.sign(-3) // -1
274274
Math.Int.sign(0) // 0
275275
```
276276
*/

0 commit comments

Comments
 (0)