Skip to content

Commit

Permalink
fix: incorrect comment on Math.sign (#7188)
Browse files Browse the repository at this point in the history
Math.sign(negative_value) should be -1.0 instead of 1.0
  • Loading branch information
JUSTIVE authored Dec 3, 2024
1 parent 7da4d6a commit c56ad6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/Math.resi
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ module Int: {
```rescript
Math.Int.sign(3) // 1
Math.Int.sign(-3) // 1
Math.Int.sign(-3) // -1
Math.Int.sign(0) // 0
```
*/
Expand Down

0 comments on commit c56ad6f

Please sign in to comment.