mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
tests: use new array init syntax, fix mutability
This commit is contained in:
parent
0641a31fe0
commit
153ac230ec
7 changed files with 23 additions and 17 deletions
|
@ -11,7 +11,7 @@ const (
|
|||
// NOTE: temp until we have []bytes(buff)
|
||||
fn c_array_to_bytes_tmp(len int, buffer voidptr) []byte {
|
||||
|
||||
mut arr := []byte
|
||||
mut arr := []byte{}
|
||||
arr = make(len, 1, 1)
|
||||
arr.data = buffer
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue