mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
examples: update [0;n]
to [0].repeat(n)
This commit is contained in:

committed by
Alexander Medvednikov

parent
854de4e7e0
commit
5f43a61e0d
@ -39,7 +39,7 @@ fn (v mut []f64) times_trans(u []f64) {
|
||||
}
|
||||
|
||||
fn (v mut []f64) a_times_transp(u []f64) {
|
||||
mut x := [f64(0); u.len]
|
||||
mut x := [f64(0)].repeat(u.len)
|
||||
x.times(u)
|
||||
v.times_trans(x)
|
||||
}
|
||||
|
Reference in New Issue
Block a user