mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
examples: fix spectral.v
This commit is contained in:
@ -47,7 +47,7 @@ fn a_times_transp(mut v []f64, u []f64) {
|
|||||||
fn main() {
|
fn main() {
|
||||||
mut n := 0
|
mut n := 0
|
||||||
if os.args.len == 2 {
|
if os.args.len == 2 {
|
||||||
n = strconv.atoi(os.args[1])
|
n = strconv.atoi(os.args[1]) or { 0 }
|
||||||
} else {
|
} else {
|
||||||
n = 0
|
n = 0
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user