mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
vlib: add mut
for the first parameter of builtin.copy, arrays.copy and crypto (#13702)
This commit is contained in:
parent
4c33003f86
commit
7231a3f135
31 changed files with 84 additions and 88 deletions
|
@ -274,7 +274,7 @@ fn escape(s string, mode EncodingMode) string {
|
|||
required := s.len + 2 * hex_count
|
||||
mut t := []byte{len: required}
|
||||
if hex_count == 0 {
|
||||
copy(t, s.bytes())
|
||||
copy(mut t, s.bytes())
|
||||
for i in 0 .. s.len {
|
||||
if s[i] == ` ` {
|
||||
t[i] = `+`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue