From 8a0cca2255d3feaeaadb76b87646db08a21468ba Mon Sep 17 00:00:00 2001 From: Michael Charlton Date: Tue, 18 Jul 2023 15:25:47 +0100 Subject: [PATCH] math: correct documentation error for math.signi, make it match the fn signature (#18872) --- vlib/math/math.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/math/math.v b/vlib/math/math.v index ffc41549bf..451333d848 100644 --- a/vlib/math/math.v +++ b/vlib/math/math.v @@ -146,7 +146,7 @@ pub fn sign(n f64) f64 { return copysign(1.0, n) } -// signi returns the corresponding sign -1.0, 1.0 of the provided number. +// signi returns the corresponding sign -1, 1 of the provided number. [inline] pub fn signi(n f64) int { return int(copysign(1.0, n))