mirror of
https://github.com/vlang/v.git
synced 2025-09-16 16:02:29 +03:00
vlib: fix missing else{}
in match statements
This commit is contained in:
parent
2fb7fba856
commit
ad6adf327e
15 changed files with 88 additions and 85 deletions
|
@ -140,9 +140,9 @@ pub fn factorial(n f64) f64 {
|
|||
return max_f64
|
||||
}
|
||||
|
||||
/* Otherwise return n!. */
|
||||
// Otherwise return n!.
|
||||
if n == f64(i64(n)) && n >= 0.0 {
|
||||
return f64(factorials[i64(n)])
|
||||
return factorials[i64(n)]
|
||||
}
|
||||
|
||||
return gamma(n + 1.0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue