diff --git a/builtin/array.v b/builtin/array.v index 8a236474fc..21d8aea42d 100644 --- a/builtin/array.v +++ b/builtin/array.v @@ -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 diff --git a/builtin/string.v b/builtin/string.v index 9a8ebe4458..f458b28818 100644 --- a/builtin/string.v +++ b/builtin/string.v @@ -2,8 +2,8 @@ module builtin // V strings are not null-terminated. struct string { - str byteptr pub: + str byteptr len int }