builtin: make string.add() private

pull/1251/head
Alexander Medvednikov 2019-07-20 16:43:33 +02:00
parent 72159d4169
commit 5c12d13b19
1 changed files with 1 additions and 1 deletions

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. // 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 new_len := a.len + s.len
mut res := string { mut res := string {
len: new_len len: new_len