Skip to content

Commit 3043687

Browse files
Merge branch 'vlang:main' into main
2 parents 11121e7 + b691246 commit 3043687

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

poly/poly.v

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
module poly
22

33
import math
4+
import vsl.errors
45

56
const radix = 2
67
const radix2 = (radix * radix)
78

89
pub fn eval(c []f64, x f64) f64 {
910
if c.len == 0 {
10-
panic('coeficients can not be empty')
11+
errors.vsl_panic('coeficients can not be empty', .efailed)
1112
}
1213
len := c.len
1314
mut ans := c[len - 1]

0 commit comments

Comments
 (0)