From 396eede4dbb64372e1235f457e837aa24ac450e0 Mon Sep 17 00:00:00 2001 From: czkz <61359572+czkz@users.noreply.github.com> Date: Sat, 18 Sep 2021 12:23:31 +0300 Subject: [PATCH] math: fix typos (#11533) --- vlib/math/math.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/math/math.v b/vlib/math/math.v index 4a05815dbf..f0d4718c4c 100644 --- a/vlib/math/math.v +++ b/vlib/math/math.v @@ -36,7 +36,7 @@ pub fn copysign(x f64, y f64) f64 { return f64_from_bits((f64_bits(x) & ~sign_mask) | (f64_bits(y) & sign_mask)) } -// degrees convert from degrees to radians. +// degrees converts from radians to degrees. [inline] pub fn degrees(radians f64) f64 { return radians * (180.0 / pi) @@ -103,7 +103,7 @@ pub fn signi(n f64) int { return int(copysign(1.0, n)) } -// radians convert from radians to degrees. +// radians converts from degrees to radians. [inline] pub fn radians(degrees f64) f64 { return degrees * (pi / 180.0)