make string.str and array.data public

pull/379/head
musou1500 2019-06-23 07:24:16 +09:00 committed by Alex Medvednikov
parent 7c6526ec12
commit a32d48e0e0
2 changed files with 2 additions and 2 deletions

View File

@ -3,8 +3,8 @@ module builtin
struct array {
// Using a void pointer allows to implement arrays without generics and without generating
// extra code for every type.
data voidptr
pub:
data voidptr
len int
cap int
element_size int

View File

@ -2,8 +2,8 @@ module builtin
// V strings are not null-terminated.
struct string {
str byteptr
pub:
str byteptr
len int
}