1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

math: correct documentation error for math.signi, make it match the fn signature (#18872)

This commit is contained in:
Michael Charlton 2023-07-18 15:25:47 +01:00 committed by GitHub
parent 0915d87c7c
commit 8a0cca2255
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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))