1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

builtin: make string.add() private

This commit is contained in:
Alexander Medvednikov 2019-07-20 16:43:33 +02:00
parent 72159d4169
commit 5c12d13b19

View File

@ -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