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

checker: check if mut function arg is declared as mut (#5579)

This commit is contained in:
Uwe Krüger
2020-06-30 14:19:22 +02:00
committed by GitHub
parent 8d7eccb8e1
commit 8a46911725
13 changed files with 88 additions and 31 deletions

View File

@ -117,7 +117,7 @@ pub fn (mut d Digest) checksum() []byte {
panic('d.nx != 0')
}
digest := []byte{len:(size)}
mut digest := []byte{len:(size)}
binary.little_endian_put_u32(mut digest, d.s[0])
binary.little_endian_put_u32(mut digest[4..], d.s[1])