mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vlib: add mut
for the first parameter of builtin.copy, arrays.copy and crypto (#13702)
This commit is contained in:
@@ -19,7 +19,7 @@ fn (mut s StringReader) read(mut buf []byte) ?int {
|
||||
}
|
||||
mut howmany := imin(buf.len, s.text.len - s.place)
|
||||
xxx := s.text[s.place..s.place + howmany].bytes()
|
||||
read := copy(buf, xxx)
|
||||
read := copy(mut buf, xxx)
|
||||
s.place += read
|
||||
return read
|
||||
}
|
||||
|
Reference in New Issue
Block a user