From 5c12d13b192ff16bcb138d5a4fa469759d263dfa Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sat, 20 Jul 2019 16:43:33 +0200 Subject: [PATCH] builtin: make string.add() private --- vlib/builtin/string.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/builtin/string.v b/vlib/builtin/string.v index 4f441925f7..9b2b682766 100644 --- a/vlib/builtin/string.v +++ b/vlib/builtin/string.v @@ -210,7 +210,7 @@ fn (s string) ge(a string) bool { } // TODO `fn (s string) + (a string)` ? To be consistent with operator overloading syntax. -pub fn (s string) add(a string) string { +fn (s string) add(a string) string { new_len := a.len + s.len mut res := string { len: new_len