1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

compiler/vlib: change _ := to _ = and disable _ :=

This commit is contained in:
joe-conigliaro
2019-09-25 22:10:45 +10:00
committed by Alexander Medvednikov
parent 746655c1d5
commit 8974aa4513
12 changed files with 33 additions and 33 deletions

View File

@ -68,7 +68,7 @@ pub fn (c mut Cipher) xor_key_stream(dst mut []byte, src []byte) {
}
mut i := c.i
mut j := c.j
_ := dst[src.len-1]
_ = dst[src.len-1]
*dst = dst.left(src.len) // eliminate bounds check from loop
for k, v in src {
i += byte(1)