From 2cd9725864c5483dce303f14370bfbf5b7da2d0f Mon Sep 17 00:00:00 2001 From: Ben Date: Wed, 4 Dec 2024 02:27:37 +0900 Subject: [PATCH] fix: incorrect comment on Math.sign Math.sign(negative_value) should be -1.0 instead of 1.0 --- runtime/Math.resi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/Math.resi b/runtime/Math.resi index ef146f9bcb..0ef32890ba 100644 --- a/runtime/Math.resi +++ b/runtime/Math.resi @@ -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 ``` */