From a32d48e0e0f80639a6689afa5cc3ac0b86da831b Mon Sep 17 00:00:00 2001 From: musou1500 Date: Sun, 23 Jun 2019 07:24:16 +0900 Subject: [PATCH] make string.str and array.data public --- builtin/array.v | 2 +- builtin/string.v | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }