mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
math: update documentation (#14457)
This commit is contained in:
committed by
GitHub
parent
23568f19da
commit
120f31b4d9
@@ -1,5 +1,6 @@
|
||||
module math
|
||||
|
||||
// hypot returns the hypotenuse of the triangle give two sides
|
||||
pub fn hypot(x f64, y f64) f64 {
|
||||
if is_inf(x, 0) || is_inf(y, 0) {
|
||||
return inf(1)
|
||||
|
||||
Reference in New Issue
Block a user