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

vlib: fix mutable args

This commit is contained in:
joe-conigliaro
2019-08-07 17:53:33 +10:00
committed by Alexander Medvednikov
parent 34e0b164eb
commit 0bcc53c366
13 changed files with 54 additions and 54 deletions

View File

@ -15,7 +15,7 @@ fn test_crypto_rc4() {
mut src := 'toencrypt'.bytes()
// src & dst same, encrypt in place
c.xor_key_stream(src, src) // encrypt data
c.xor_key_stream(mut src, src) // encrypt data
c.reset()